ToolStripTreeViewDropDown.GetPreferredSize Method
Retrieves the size of a rectangular area into which a control can fit.
Namespace: Microsoft.SqlServer.Management.Controls
Assembly: Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)
Syntax
'Declaration
Public Overrides Function GetPreferredSize ( _
constrainingSize As Size _
) As Size
'Usage
Dim instance As ToolStripTreeViewDropDown
Dim constrainingSize As Size
Dim returnValue As Size
returnValue = instance.GetPreferredSize(constrainingSize)
public override Size GetPreferredSize(
Size constrainingSize
)
public:
virtual Size GetPreferredSize(
Size constrainingSize
) override
abstract GetPreferredSize :
constrainingSize:Size -> Size
override GetPreferredSize :
constrainingSize:Size -> Size
public override function GetPreferredSize(
constrainingSize : Size
) : Size
Parameters
- constrainingSize
Type: System.Drawing.Size
The custom-sized area for a control.
Return Value
Type: System.Drawing.Size
An ordered pair of type Size representing the width and height of a rectangle.
See Also