System.Windows.Forms.Label.GetPreferredSize Method

Retrieves the size of a rectangular area into which a control can be fitted.

Syntax

public override System.Drawing.Size GetPreferredSize (System.Drawing.Size proposedSize)

Parameters

proposedSize
The custom-sized area for a control.

Returns

An ordered pair of type System.Drawing.Size representing the width and height of a rectangle.

Remarks

Documentation for this section has not yet been entered.

Requirements

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