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


ISelection Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IS > ISelection Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

ISelection Interface

Provides access to members that control a collection of selectable objects.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Manages clipboard type operations on a selection. To learn more read the help for IActiveView::Selection.

Members

Name Description
Method CanClear Indicates if the selection can be cleared.
Method CanCopy Indicates if the selection can be copied.
Method CanCut Indicates if the selection can be cut.
Method CanPaste Indicates if paste is supported.
Method CanSelectAll Indicates if there's something to select.
Method Clear Clears all items in the selection.
Method Copy Copy the selected items to the clipboard.
Method Cut Cut the selected items to the clipboard.
Method Draw Draw the selected items.
Method Paste Paste clipboard contents.
Method SelectAll Selects all items.

CoClasses that implement ISelection

CoClasses and Classes Description
ElementSelection (esriArcMapUI) Maintains the the graphic element selection.
MapSelection Maintains the map's feature selection.
SimpleElementSelection Simple selection object. Implements drawing and selecting but not clipboard support.

.NET Samples

Using HookActions in custom commands (Code Files: hookActionsCallout hookActionsFlash hookActionsGraphic hookActionsLabel hookActionsPan hookActionsZoom)

.NET Related Topics

Using the control commands