System.Windows.Forms.VisualStyles.VisualStyleRenderer.GetPartSize Method

Returns the value of the specified size property of the current visual style part.

Syntax

public System.Drawing.Size GetPartSize (System.Drawing.IDeviceContext dc, ThemeSizeType type)

Parameters

dc
The System.Drawing.IDeviceContext this operation will use.
type
One of the System.Windows.Forms.VisualStyles.ThemeSizeType values that specifies which size value to retrieve for the part.

Returns

A System.Drawing.Size that contains the size specified by the type parameter for the current visual style part.

Remarks

Typically, only the ThemeSizeType.True and ThemeSizeType.Minimum values should be used for the type parameter of this method.

Requirements

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