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


IARControlDefault.TOCVisible Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (PublisherControls)  

IARControlDefault.TOCVisible Property

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

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 IARControlDefault::HasDocumentPermission method to determine this.

See Also

IARControlDefault Interface