ArcGIS Pro 2.9 API Reference Guide
SelectElements Method (LayoutExtensions)

ArcGIS.Desktop.Layouts Namespace > LayoutExtensions Class : SelectElements Method
The selection geometry
Combination method used in selection operation
Select elements that visually intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Shared Function SelectElements( _
   ByVal layoutView As LayoutView, _
   ByVal geometry As Geometry, _
   Optional ByVal method As SelectionCombinationMethod, _
   Optional ByVal isWhollyWithin As Boolean _
) As IReadOnlyList(Of Element)

Parameters

layoutView
geometry
The selection geometry
method
Combination method used in selection operation
isWhollyWithin

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, Windows 8.1

See Also

Reference

LayoutExtensions Class
LayoutExtensions Members