ArcGIS Pro 2.9 API Reference Guide
GetElementsAsFlattenedList Method (GraphicsLayerExtensions)

ArcGIS.Desktop.Mapping Namespace > GraphicsLayerExtensions Class : GetElementsAsFlattenedList Method
The graphics layer being extended
Get the collection of ArcGIS.Desktop.Layouts.GraphicElement from the GraphicsLayer. Nested groups within ArcGIS.Desktop.Layouts.GroupElement are not preserved.
Syntax
public static IReadOnlyList<GraphicElement> GetElementsAsFlattenedList( 
   GraphicsLayer graphicsLayer
)
Public Shared Function GetElementsAsFlattenedList( _
   ByVal graphicsLayer As GraphicsLayer _
) As IReadOnlyList(Of GraphicElement)

Parameters

graphicsLayer
The graphics layer being extended

Return Value

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

GraphicsLayerExtensions Class
GraphicsLayerExtensions Members