Specifies the hex mask of the layers the object is currently a part of.
Syntax
object.Layer [= Long]
Properties
The Layer property syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
Long |
The layer of the shape. |
Remarks
The Layer property is used in conjunction with the DisplayLayer property of the Picture or DynamoSet to determine which objects are visible and accessible. For example, an object who's Layer property is set to 3 will not be visible when the DisplayLayer property of the document is set to 8. However, the object would be visible if the DisplayLayer property of the document is set to 1, 2 or any number who's first and second bits are set. The DisplayLayer property is also a mask of bits.
A Layer value of 3 does not signify that the object is a part of layer three, but rather a part of both layers one and two.