Uredi

Deli z drugimi prek


ToolStripItem.GetPreferredSize(Size) Method

Definition

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

public:
 virtual System::Drawing::Size GetPreferredSize(System::Drawing::Size constrainingSize);
public virtual System.Drawing.Size GetPreferredSize (System.Drawing.Size constrainingSize);
abstract member GetPreferredSize : System.Drawing.Size -> System.Drawing.Size
override this.GetPreferredSize : System.Drawing.Size -> System.Drawing.Size
Public Overridable Function GetPreferredSize (constrainingSize As Size) As Size

Parameters

constrainingSize
Size

The custom-sized area for a control.

Returns

A Size ordered pair, representing the width and height of a rectangle.

Applies to