Input for WinForms | ComponentOne
C1.Win.Input Namespace / C1Button Class / GetBounds Method
C1.Framework.XViewLight.Element to locate.
Whether to get the bounds of the whole element or just the content area.
Whether to clip the rectangle based on ancestor elements.

In This Topic
    GetBounds Method (C1Button)
    In This Topic
    Gets the rectangle that contains a given element.
    Syntax
    'Declaration
     
    
    Protected Function GetBounds( _
       ByVal e As Element, _
       Optional ByVal contentArea As Boolean, _
       Optional ByVal clip As Boolean _
    ) As Rectangle
    protected Rectangle GetBounds( 
       Element e,
       bool contentArea,
       bool clip
    )

    Parameters

    e
    C1.Framework.XViewLight.Element to locate.
    contentArea
    Whether to get the bounds of the whole element or just the content area.
    clip
    Whether to clip the rectangle based on ancestor elements.

    Return Value

    Bounds of element e, in client coordinates.
    Remarks
    This method is similar to the C1.Framework.Element.GetBounds method in the C1.Framework.XViewLight.Element class.
    See Also