This document is archived and information here might be outdated. Recommended version. |
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.