This document is archived and information here might be outdated.  Recommended version.


ISelectFeaturesOperation Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IS > ISelectFeaturesOperation Interface
ArcGIS Developer Help

ISelectFeaturesOperation Interface

Provides access to members that control the Select Features operation.

Product Availability

Available with ArcGIS Desktop.

Members

Name Description
Write-only property ActiveView The active view (for refresh).
Write-only property Layer The layer from which to select features.
Write-only property SelectionSet The selection set.

Classes that implement ISelectFeaturesOperation

Classes Description
SelectFeaturesOperation Select Features Operation.

Remarks

Use this interface to perform selection operation. The changes in the selection will then be undoable or redoable.

To use, simply create a SelectFeaturesOperation object and set the values of the properties as follow:

The ActiveView property will contain a reference to the active view to refresh on undo/redo, typically the current active view.
Layer is the layer on which to perform the selection
Store into SelectionSet the selection set resulting from performing the operation.

Then pass the SelectFeaturesOperation object to the Do method of an OperationStack object, the operation will be performed.

Use IActiveView::PartialRefresh to refresh the selection on the map.

The selection operation you performed can now be undone or redone at will.