System.Windows.Forms.ScrollBarRenderer.GetThumbGripSize Method

Returns the size of the scroll box grip.

Syntax

public static System.Drawing.Size GetThumbGripSize (System.Drawing.Graphics g, System.Windows.Forms.VisualStyles.ScrollBarState state)

Parameters

g
The System.Drawing.Graphics this operation will use.
state
One of the System.Windows.Forms.VisualStyles.ScrollBarState values that specifies the visual state of the scroll box grip.

Returns

A System.Drawing.Size that specifies the size of the scroll box grip.

Remarks

The size of the scroll box grip is determined by the current visual style of the operating system.

Before using this method, you should verify that the ScrollBarRenderer.IsSupported property returns true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0