The SetZOrder method moves the selected objects to the front, to the back, forward, or backward in the Z (drawing) order.
Syntax
object.SetZOrder( ZOrder )
Parameter |
Type |
Description |
Zorder |
required; movement type |
Remarks
mvZOForward and mvZOBackward, move the last selected object only, not the entire selection.
Example 1
This example demonstrates how to move an entire selection to the front.
Selection.SetZOrder(Zorder:= mvZOToFront)
Example 2
This example demonstrates how to move a rectangle to the front.
Rectangle.SetZOrder(Zorder:= mvZOToFront)
Used by: Layer object, Selection collection, Shape object