[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IShape.ZOrderPosition

ZOrderPosition Property

ZOrderPosition

Returns the position of the specified shape in the z-order.

Use this property to retrieve the current stacking position of a shape relative to other shapes in the same worksheet. This is typically used after calling ZOrder(ZOrderType) to inspect the updated order.

Declaration
int ZOrderPosition { get; }
ReadOnly Property ZOrderPosition As Integer
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 120, 60);
int zOrderPosition = shape.ZOrderPosition;