[]
Specifies where a shape should be moved in the z-order relative to other shapes.
Use this enum with ZOrder(ZOrderType) to bring a shape forward, send it backward, move it to the front, or move it to the back of the shape collection.
public enum ZOrderType
Public Enum ZOrderType
IShape rectangle = worksheet.Shapes.AddShape("rectangle", AutoShapeType.Rectangle, 20, 20, 80, 50);
IShape oval = worksheet.Shapes.AddShape("oval", AutoShapeType.Oval, 40, 40, 80, 50);
rectangle.ZOrder(ZOrderType.BringToFront);
oval.ZOrder(ZOrderType.SendBackward);
| Name | Description |
|---|---|
| BringForward | Brings the shape one position forward in the z-order relative to other shapes. |
| BringToFront | Brings the shape to the front of the z-order, in front of all other shapes in the collection. |
| SendBackward | Sends the shape one position backward in the z-order relative to other shapes. |
| SendToBack | Sends the shape to the back of the z-order, behind all other shapes in the collection. |