SetZOrder
SetZOrder moves the selected objects forward or backward in the Z (drawing) order.
Syntax
object.SetZOrder( ZOrder )
Parameter |
Type |
Required/ Optional |
Default |
Description |
ZOrder |
Required |
These enumerated values specifies the direction of movement of the objects. |
Remarks
The enumerations, srfZOForward and srfZOBackward, 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:=srfZOToFront)
Example 2
This example demonstrates how to move a rectangle to the front.
Rectangle.SetZOrder(Zorder:=srfZOToFront)
Example 3
This example demonstrates how to move a 3D wireframe overlay to the front.
Shapes.Item("Map").Overlays.Item("3D Wireframe-Demogrid.grd").SetZOrder(srfZOToFront)
Used by: Selection collection, Shape object, Overlays collection