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

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

Syntax

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

Parameters

dc
The System.Drawing.IDeviceContext this operation will use.
bounds
A System.Drawing.Rectangle that contains the area in which the part will be drawn.
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

Documentation for this section has not yet been entered.

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