Layer property
Returns the layer to which a shape is assigned.
Version added
4.0
Syntax
| |
objRet |
A Layer object that represents the requested layer. |
object |
Required. An expression that returns a Shape object. |
index |
Integer. The ordinal of the layer to get. |
Remarks
If a shape is assigned to three layers, then the valid indexes that can be passed to its Layer property are 1 through 3.
To get the number of layers to which a shape is assigned, use the LayerCount property.