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


IARLayer.Visible Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARLayer Interface > IARLayer.Visible Property
ArcGIS Developer Help

IARLayer.Visible Property

Indicates if the layer is currently visible.

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

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

The Visible property specifies whether the layer is visible in the IARControl::CurrentView.

Errors Returned

2112 800A0840: The current document does not have permission to change layer visibility

Remarks

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.

See Also

IARLayer Interface