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


IMxDocument.CurrentContentsView Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IM > IMxDocument Interface > IMxDocument.CurrentContentsView Property
ArcGIS Developer Help

IMxDocument.CurrentContentsView Property

The current contents view of the document.

[Visual Basic .NET]
Public Property CurrentContentsView As IContentsView
[C#]
public IContentsView CurrentContentsView {get; set;}

Product Availability

Available with ArcGIS Desktop.

Remarks

A contents view is a tab in the table of contents.  ArcMap ships with two contents views, Display and Source.  The object behind Display is TOCDisplayView and TOCCatalogView is behind the Source view.  Custom contents views can be created by implementing the IContentsView interface.  Only one contents view can be active at a time.  Use this property to set the current contents view and to get a reference to the current contents view.  Setting the current contents view automatically calls IContentsView::Refresh.

See Also

IMxDocument Interface

.NET Samples

Custom UI elements using add-ins