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

Network Analyst 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