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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.