Viewer.LayerVisible property (Visio Viewer)
Gets or sets a value that indicates whether the specified layer is visible in the drawing open in Microsoft Visio Viewer. Read/write.
Syntax
expression.LayerVisible (LayerIndex)
expression An expression that returns a Viewer object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
LayerIndex | Required | Long | The index of the layer in the collection of layers in the drawing open in Visio Viewer. |
Return value
Boolean
Remarks
The collection of layers is one-based, so the index of the first layer in the collection is 1. If there are no layers in the drawing, the LayerVisible property returns False.
Example
The following code gets a value that indicates whether the layer at index position 1 is visible.
Debug.Print vsoViewer.LayerVisible(1)
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.