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


IMxDocument.ContentsView Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (ArcMapUI)  

IMxDocument.ContentsView Property

The contents view at the specified index.

[Visual Basic .NET]
Public Function get_ContentsView ( _
    ByVal index As Integer _
) As IContentsView
[C#]
public IContentsView get_ContentsView (
    int index
);

Product Availability

Available with ArcGIS Desktop.

Remarks

A contents view is essentially 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 a reference to the contents view specified by the index number.

See Also

IMxDocument Interface

.NET Snippets

Get Contents View from ArcMap