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


IToolSelectedLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > IToolSelectedLayer Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SystemUI)  

IToolSelectedLayer Interface

Provides access to members that set and get the current selected layer, which selection commands and tools works on.

Product Availability

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

Description

Implement the IToolSelectedLayer interface if you are creating a custom Command that operates with a currently 'selected' layer.

This interface is typically used when creating commands to work with the MapControl, PageLayoutControl, ToolbarControl, SceneControl and GlobeControl. If a custom command is created to work with only ArcMap use the IMxDocument::SelectedLayer property instead.

Members

Name Description
Read/write property LayerIndex The index of selected layer.

CoClasses that implement IToolSelectedLayer

CoClasses and Classes Description
Controls3DAnalystContourTool (esriControls) Generates the contour that passes through a query point.
Controls3DAnalystSteepestPathTool (esriControls) Generates the steepest path down from a point.
ControlsSelectAllCommand (esriControls) Selects all the features in selectable layers.
ControlsSwitchSelectionCommand (esriControls) Makes unselected features selected.
EngineNetworkAnalystEnvironment (esriControls) A singleton object representing Engine Network Analyst environment.