System.Windows.Forms.CheckBoxRenderer.GetGlyphSize Method

Returns the size of the check box glyph.

Syntax

public static System.Drawing.Size GetGlyphSize (System.Drawing.Graphics g, System.Windows.Forms.VisualStyles.CheckBoxState state)

Parameters

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

Returns

A System.Drawing.Size that represents the size of the check box glyph.

Remarks

The size of the check box glyph is determined by the current visual style of the operating system.

Requirements

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