LayerCount property

Microsoft Visio Developer Reference

LayerCount property

       

Returns the number of layers to which a shape is assigned.

Version added

4.0

Syntax

intRet = object.LayerCount

intRet

Integer. The number of layers to which the shape is assigned.

object

Required. An expression that returns a Shape object.

Remarks

A shape is assigned to zero or more layers.