ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElement Interface / GetParent Method
If true then the top most parent or 'container' is returned

In This Topic
    GetParent Method (IElement)
    In This Topic
    Gets the parent of this element.
    Syntax
    Function GetParent( _
       Optional ByVal topMost As Boolean _
    ) As IElementContainer

    Parameters

    topMost
    If true then the top most parent or 'container' is returned

    Return Value

    Remarks
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also