ComponentOne SuperTooltip for WinForms
C1.Win.4.8 Assembly / C1.Framework Namespace / XView Class / GetBounds Method / GetBounds(Element,Boolean,Boolean) Method
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(Element,Boolean,Boolean) Method
    In This Topic
    Gets the rectangle that contains a given element.
    Syntax
    'Declaration
     
    Public Overloads Function GetBounds( _
       ByVal e As Element, _
       ByVal contentArea As System.Boolean, _
       ByVal clip As System.Boolean _
    ) As System.Drawing.Rectangle
    public System.Drawing.Rectangle GetBounds( 
       Element e,
       System.bool contentArea,
       System.bool clip
    )

    Parameters

    e
    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 Element.GetBounds method in the Element class, except this one takes the current ScrollableControl.ScrollPosition into account.
    See Also