Spread WinForms 15
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcComboBox Class / GetPreferredSize Method
The custom-sized area for a control.


In This Topic
GetPreferredSize Method (GcComboBox)
In This Topic
Retrieves the size of a rectangular area into which a control can be fitted.
Syntax
'Declaration
 
Public Overrides Function GetPreferredSize( _
   ByVal proposedSize As Size _
) As Size
 
'Usage
 
Dim instance As GcComboBox
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 representing the width and height of a rectangle.
Remarks
This method gets a minimun size which can just display all contents.
See Also