This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARLayer Interface > IARLayer.Visible Property (ArcObjects .NET 10.5 SDK) |
Indicates if the layer is currently visible.
[Visual Basic .NET] Public Property Visible As Boolean
[C#] public bool Visible {get; set;}
The Visible property specifies whether the layer is visible in the IARControl::CurrentView.
2112 800A0840: The current document does not have permission to change layer visibility
Setting the Visible property will return an error if the currently loaded document was not published with permission to ChangeLayerVisibility. Use the IARControl::HasDocumentPermission method to determine this.