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


IARControl.TOCVisible Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (PublisherControls)  

IARControl.TOCVisible Property

Indicates if the Table of Contents (TOC) is visible.

[Visual Basic .NET]
Public Property TOCVisible As Boolean
[C#]
public bool TOCVisible {get; set;}

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Indicates whether the Table of Contents (TOC) on the left hand side of the ArcReaderControl is visible. You may want to hide the TOC to have more area for displaying data. The width of the TOC can be changed by setting the TOCWidth property to the appropriate number of pixels. By default the TOCVisible property is set to true.

Errors Returned

2101 800A0835: The current document does not have permission to view the table of contents

Remarks

Setting the TOCVisible property will return an error if the currently loaded document was not published with permission to ViewTOC. Use the IARControl::HasDocumentPermission method to determine this.

See Also

IARControl Interface