ArcObjects Library Reference (ArcMapUI)  

IContentsViewEdit Interface

Provides access to members that control Contents View Edit.

Product Availability

Available with ArcGIS Desktop.

Description

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

Members

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

CoClasses that implement IContentsViewEdit

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

Remarks

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.