System.Windows.Forms.ScrollBarRenderer.GetSizeBoxSize Method

Returns the size of the sizing handle.

Syntax

public static System.Drawing.Size GetSizeBoxSize (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 sizing handle.

Returns

A System.Drawing.Size that specifies the size of the sizing handle.

Remarks

The size of the sizing handle 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