ToolStripItem.GetPreferredSize(Size) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.