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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.