Input for WinForms | ComponentOne
C1.Framework Namespace / PathIconElement Class / GetBounds Method / GetBounds(Element,Boolean,Boolean) Method
Ancestor element (parent, grand-parent, etc).
Whether to return the element's outer bounds or content area.
Whether to clip the rectangle to the ancestor's content area.

In This Topic
    GetBounds(Element,Boolean,Boolean) Method
    In This Topic
    Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetBounds( _
       ByVal ancestor As Element, _
       ByVal contentArea As Boolean, _
       ByVal clip As Boolean _
    ) As Rectangle

    Parameters

    ancestor
    Ancestor element (parent, grand-parent, etc).
    contentArea
    Whether to return the element's outer bounds or content area.
    clip
    Whether to clip the rectangle to the ancestor's content area.

    Return Value

    A System.Drawing.Rectangle that corresponds to the element's position within the given ancestor.
    See Also