ArcObjects Library Reference (PublisherControls)  

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