System.Windows.Forms.ToolStripItem.GetPreferredSize Method

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

Syntax

public virtual System.Drawing.Size GetPreferredSize (System.Drawing.Size constrainingSize)

Parameters

constrainingSize
The custom-sized area for a control.

Returns

A System.Drawing.Size ordered pair, 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
Since: .NET 2.0