ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / LayoutExtensions Class / SelectElements Method
The layout view.
The selection geometry
Combination method used in selection operation
Indicates whether only elements that are completely within the geometry should be selected.
Version

SelectElements Method (LayoutExtensions)
Select elements that visually intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

layoutView
The layout view.
geometry
The selection geometry
method
Combination method used in selection operation
isWhollyWithin
Indicates whether only elements that are completely within the geometry should be selected.

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Geometry cannot be null or empty
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also