Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / TouchToolBarButton Class / GetPreferredSize Method
The specified area for a System.Windows.Forms.ToolStripButton.


In This Topic
    GetPreferredSize Method (TouchToolBarButton)
    In This Topic
    Retrieves the size of a rectangular area into which a System.Windows.Forms.ToolStripButton can be fitted.
    Syntax
    'Declaration
     
    
    Public Overrides Function GetPreferredSize( _
       ByVal constrainingSize As Size _
    ) As Size
    'Usage
     
    
    Dim instance As TouchToolBarButton
    Dim constrainingSize As Size
    Dim value As Size
     
    value = instance.GetPreferredSize(constrainingSize)
    public override Size GetPreferredSize( 
       Size constrainingSize
    )

    Parameters

    constrainingSize
    The specified area for a System.Windows.Forms.ToolStripButton.

    Return Value

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