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


IMxDocument.ContentsViewCount 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.ContentsViewCount Property
ArcGIS Developer Help

IMxDocument.ContentsViewCount Property

The number of contents views in the document.

[Visual Basic .NET]
Public ReadOnly Property ContentsViewCount As Integer
[C#]
public int ContentsViewCount {get;}

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 (TOCDisplayView) and Source (TOCCatalogView).  Create custom contents views by implementing the IContentsView interface.  Only one contents view can be active at a time.  This property returns the number of contents views registered in the ESRI Contents Views component category.  The Display contents view is not listed here as it is the default.

See Also

IMxDocument Interface