Retrieves the size of a rectangular area into which a control can fit.
Syntax
Visual Basic (Declaration) | |
---|
Public Overrides Function GetPreferredSize( _
ByVal proposedSize As Size _
) As Size |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As EditBase
Dim proposedSize As Size
Dim value As Size
value = instance.GetPreferredSize(proposedSize) |
Parameters
- proposedSize
- The custom-sized area for a control.
Return Value
An ordered pair of type
System.Drawing.Size objects that represent the width and height of a rectangle.
Remarks
Requirements
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also