Shape.ZOrderPosition Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the position of the specified shape in the z-order.
public:
property int ZOrderPosition { int get(); };
public int ZOrderPosition { get; }
member this.ZOrderPosition : int
Public ReadOnly Property ZOrderPosition As Integer
Property Value
Remarks
To set the shape's position in the z-order, use the ZOrder(MsoZOrderCmd) method.
A shape's position in the z-order corresponds to the shape's index number in the Shapes collection.
Whenever you add a new shape to a collection, it's added to the front of the z-order by default.