ArcGIS Pro 2.6 API Reference Guide
GetParent Method (Element)

ArcGIS.Desktop.Layouts Namespace > Element Class : GetParent Method
If true then the top most parent or 'container' is returned
Gets the parent of this element.
Syntax
public IElementParent GetParent( 
   bool topMost
)
Public Function GetParent( _
   Optional ByVal topMost As Boolean _
) As IElementParent

Parameters

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

Return Value

Remarks
Parents can be one of: GroupElement
Layout
ArcGIS.Desktop.Mapping.GraphicsLayer
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Element Class
Element Members