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


esriTOCControlItem Constants (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Constants > E > esriTOCControlItem Constants (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Controls)  

esriTOCControlItem Constants

TOCControl item options.

Constant Value Description
esriTOCControlItemNone 0 No item.
esriTOCControlItemMap 1 The item is a map.
esriTOCControlItemLayer 2 The item is a layer.
esriTOCControlItemHeading 3 The item is a heading.
esriTOCControlItemLegendClass 4 The item is a legend class.

Product Availability

Available with ArcGIS Engine.

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmMain) | Displaying a TOCControl context menu (Code Files: TOCContextMenuForm) | Tabbed feature inspector (Code Files: EngineApplication) | Change layer rendering using the SymbologyControl (Code Files: LayerRendering) | Implementing a property page for an ArcGIS Engine application (Code Files: frmMain) | Save a layer file in a MapControl application (Code Files: frmMain) | TOCControl metadata viewer (Code Files: MetadataViewer) | Schematics Engine application (Code Files: MainForm)

.NET Related Topics

Disabling or validating label edits in the TOCControl | Using the TOCControl