Spread Windows Forms 15.0
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.
    Public Overrides Function GetPreferredSize( _
       ByVal proposedSize As Size _
    ) As Size
    Dim instance As GcComboBox
    Dim proposedSize As Size
    Dim value As Size
    value = instance.GetPreferredSize(proposedSize)
    public override Size GetPreferredSize( 
       Size 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.
    This method gets a minimun size which can just display all contents.
    See Also