HypernovaDesktop Components · docs
Binarymission
WinFormsScroll Bars › IScrollBarThumbRenderer

IScrollBarThumbRenderer

interface.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.ScrollBars

Draws the scroll bar thumb. Implement it to replace the built-in look without touching the scroll bar's behavior.

public interface IScrollBarThumbRenderer

Members at a glance

DrawDraws the part into the given bounds.

Methods

Draw

void Draw(Graphics graphicsInstanceToDrawOnto, Rectangle drawingBounds, ControlVisualState controlVisualState)

Draws the part into the given bounds.

graphicsInstanceToDrawOnto
The surface to draw on.
drawingBounds
The bounds of the part.
controlVisualState
Whether the part is idle, hot or pressed.