This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcGlobe > ESRI.ArcGIS.ArcGlobe > Interfaces > IG > IGMxDocument Interface > IGMxDocument.SelectedItem Property (ArcObjects .NET 10.5 SDK) |
The selected item in the layer control.
[Visual Basic .NET] Public ReadOnly Property SelectedItem As Object
[C#] public object SelectedItem {get;}
Use the SelectedITem property to obtain a reference to the selected item in the TOC. This property returns an IUnknown because an item in the TOC can be any number f things. For example, when working with the Display tab the reference can be one of the layers, if a layer is selected.