編輯

共用方式為


ShapeRange.ZOrderPosition Property

Definition

Returns the position of the specified shape in the z-order. Read-only Integer.

public:
 property int ZOrderPosition { int get(); };
public int ZOrderPosition { get; }
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. For example, if there are four shapes on myDocument, the expression myDocument.Shapes(1) returns the shape at the back of the z-order, and the expression myDocument.Shapes(4) returns the shape at the front of the z-order.

Whenever you add a new shape to a collection, it’s added to the front of the z-order by default.

Applies to