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

Viewer.LayerCount Property (Visio Viewer)

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

Gets the number of layers in the current drawing open in Microsoft Visio Viewer. Read-only.

Syntax

expression. LayerCount

_expression_An expression that returns a Viewer object.

Return Value

Long

Remarks

If there are no layers in the drawing, the LayerCount property returns 0.

Example

The following code gets the count of layers in the drawing open in Visio Viewer.

Debug.Print vsoViewer.LayerCount
© 2018 Microsoft