GetPreferredSize Method (EditBase)
Retrieves the size of a rectangular area into which a control can fit.
public override Size GetPreferredSize(
Size
)
'Declaration
Public Overrides Function GetPreferredSize( _
ByVal As Size _
) As Size
'Usage
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.