This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IS > ISelectFeaturesOperation Interface (ArcObjects .NET 10.4 SDK) |
Provides access to members that control the Select Features operation.
Description | ||
---|---|---|
ActiveView | The active view (for refresh). | |
Layer | The layer from which to select features. | |
SelectionSet | The selection set. |
CoClasses and Classes | Description |
---|---|
SelectFeaturesOperation | Select Features Operation. |
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.