ArcGIS Pro 2.8 API Reference Guide
ElementContainer Property

ArcGIS.Desktop.Mapping.Events Namespace > ElementSelectionChangedEventArgs Class : ElementContainer Property
Gets the element container whose element selection changed.
Syntax
public IElementParent ElementContainer {get;}
Public ReadOnly Property ElementContainer As IElementParent
Remarks
Containers can be either a Layout or GraphicsLayer. Query the container to retrieve elements that are selected.
Note: Element selection changed is also fired whenever a view first initializes in which case the ElementContainer will be null
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ElementSelectionChangedEventArgs Class
ElementSelectionChangedEventArgs Members