ArcGIS Pro 2.7 API Reference Guide
FindElements Method (GraphicsLayerExtensions)

ArcGIS.Desktop.Mapping Namespace > GraphicsLayerExtensions Class : FindElements Method
The graphics layer being extended
The names of the elements to find. Cannot be null
Finds the elements recursively with the given names within the GraphicsLayer collection. This method must be called on the MCT. Use QueuedTask.Run
Syntax

Parameters

graphicsLayer
The graphics layer being extended
elementNames
The names of the elements to find. Cannot be null

Return Value

A IList or an empty list if no elements are found
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Value cannot be null: elementNames
Remarks
Find recurses nested groups to find the given elements.
The map view displaying the graphics layer should be initialized.Find recurses nested groups to find the given elements.
The map view displaying the graphics layer should be initialized.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GraphicsLayerExtensions Class
GraphicsLayerExtensions Members