Spread Windows Forms 17
GrapeCity.Spreadsheet.WinForms.Ribbon Assembly / GrapeCity.Spreadsheet.WinForms.Ribbon Namespace / RibbonBar Class / GetPreferredSize Method


In This Topic
    GetPreferredSize Method (RibbonBar)
    In This Topic
    Retrieves the size of a rectangular area into which a control can be fitted.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function GetPreferredSize( _
       ByVal proposedSize As Size _
    ) As Size
    'Usage
     
    
    Dim instance As RibbonBar
    Dim proposedSize As Size
    Dim value As Size
     
    value = instance.GetPreferredSize(proposedSize)
    public override Size GetPreferredSize( 
       Size proposedSize
    )

    Parameters

    proposedSize

    Return Value

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