Retrieves the size of a rectangular area into which a control can be fit.
public override Size GetPreferredSize(
Size
)
'Declaration
Public Overrides Function GetPreferredSize( _
ByVal As Size _
) As Size
'Usage
Dim instance As LayoutSelectorToolStripMenuItem
Dim constrainingSize As Size
Dim value As Size
value = instance.GetPreferredSize(constrainingSize)
public: Size GetPreferredSize(
Size
) override
public:
Size GetPreferredSize(
Size
) override
Parameters
- constrainingSize
- The custom-sized area for a control.
Return Value
A
Size ordered pair, representing the width and height of a rectangle.