ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / SelectElements Method
The selection geometry
Combination method used in selection operation
True to only select elements within the selection geometry (and not intersecting it)

In This Topic
    SelectElements Method (MapView)
    In This Topic
    Select elements that visually intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public 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
    True to only select elements within the selection geometry (and not intersecting it)
    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