ComponentOne Input for WinForms
GetPreferredSize Method (C1Button)

C1.Win.C1Input.4 Assembly > C1.Win.C1Input Namespace > C1Button Class : GetPreferredSize Method
The custom-sized area for a control.
Retrieves the size of a rectangular area into which a control can be fitted.
Syntax
'Declaration
 
Public Overrides Function GetPreferredSize( _
   ByVal proposedSize As System.Drawing.Size _
) As System.Drawing.Size
public override System.Drawing.Size GetPreferredSize( 
   System.Drawing.Size proposedSize
)

Parameters

proposedSize
The custom-sized area for a control.

Return Value

An ordered pair of type System.Drawing.Size representing the width and height of a rectangle.
See Also

Reference

C1Button Class
C1Button Members