Table of contents
TOC
折叠目录
展开目录

Viewer.LayerCount 属性 (Visio Viewer)Viewer.LayerCount Property (Visio Viewer)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

获取在当前绘图中的图层数在 Microsoft Visio Viewer 中打开。只读的。Gets the number of layers in the current drawing open in Microsoft Visio Viewer. Read-only.

语法Syntax

表达式LayerCountexpression. LayerCount

_expression_An 表达式,该表达式返回一个查看器_expression_An expression that returns a Viewer object.

返回值Return Value

LongLong

注解Remarks

如果绘图中没有任何图层,则LayerCount属性返回 0。If there are no layers in the drawing, the LayerCount property returns 0.

示例Example

下面的代码获取在 Visio Viewer 中打开的绘图中的图层数。The following code gets the count of layers in the drawing open in Visio Viewer.

Debug.Print vsoViewer.LayerCount
© 2018 Microsoft