ArcGIS Pro 2.9 API Reference Guide
SelectElements(Geometry,SelectionCombinationMethod,Boolean) Method

ArcGIS.Desktop.Layouts Namespace > GraphicElementContainer Class > SelectElements Method : SelectElements(Geometry,SelectionCombinationMethod,Boolean) Method
The selection geometry
Combination method used in selection operation
This parameter only applies to 2D. Indicates whether only elements that are completely within the geometry should be selected.
Select elements that visually intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Sub SelectElements( _
   ByVal geometry As Geometry, _
   ByVal method As SelectionCombinationMethod, _
   ByVal isWhollyWithin As Boolean _
) 

Parameters

geometry
The selection geometry
method
Combination method used in selection operation
isWhollyWithin
This parameter only applies to 2D. 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, Windows 8.1

See Also

Reference

GraphicElementContainer Class
GraphicElementContainer Members
Overload List