TreeView for WinForms | ComponentOne
C1.Framework Namespace / Element Class / GetBounds Method / GetBounds(Element) Method
Ancestor element (parent, grand-parent, etc).

In This Topic
    GetBounds(Element) Method
    In This Topic
    Gets the element's bounds (size and location) within an arbitrary ancestor, in pixels. Ancestor element (parent, grand-parent, etc). A System.Drawing.Rectangle that corresponds to the element's position within the given ancestor.
    Syntax
    'Declaration
     
    
    Public Overloads Function GetBounds( _
       ByVal ancestor As Element _
    ) As Rectangle
    public Rectangle GetBounds( 
       Element ancestor
    )

    Parameters

    ancestor
    Ancestor element (parent, grand-parent, etc).

    Return Value

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