Table of contents
Collapse the table of content
Expand the table of content

Viewer.LayerColorOverride Property (Visio Viewer)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Gets or sets a value that indicates whether the color of the specified layer is reset to the default color in the current drawing in Microsoft Visio Viewer. Read/write.


expression. LayerColorOverride( LayerIndex)

_expression_An expression that returns a Viewer object.


NameRequired/OptionalData TypeDescription
LayerIndexRequiredLongThe index of the layer in the collection of layers in the drawing open in Visio Viewer.

Return Value



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, or if you pass the index of a nonexistent layer, the LayerColorOverride property returns False. The default value is True.


The following code shows how to override the color of the layer at index position 1.

vsoViewer.LayerColorOverride(1) = False
© 2018 Microsoft