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

IContentsViewEdit Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IC > IContentsViewEdit Interface
ArcGIS Developer Help

IContentsViewEdit Interface

Provides access to members that control Contents View Edit.

Product Availability

Available with ArcGIS Desktop.


Used to add or remove tabs of the Table of Contents (TOC) in ArcMap, ArcScene, or ArcGlobe.


Name Description
Method AddContentsView Adds a contents view object to the TOC.
Method ClearContentsViews Removes all current contents views.

Classes that implement IContentsViewEdit

Classes Description
GMxDocument (esriArcGlobe) Provides access to members that control the ArcGlobe document.
MxDocument Esri Mx Document.


When tabs are cleared, they are removed from the TOC and also they do not appear in the TOC options dialog (in ArcMap and ArcGlobe: Tools > Options > Table of Contents). To simply show/hide tabs, use IContentsView::Visible. When IContentsViewEdit is used, the tab state is saved in the document template (normal.mxt or normal.sxt). Deleting the document template returns the tab state to the default.