Method: Move for ZOrder
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: Move for ZOrder
Method: Move for ZOrder
Moves an object in front of or behind the other objects in a worksheet in DIAdem REPORT.
Object.Move(ZOrderDelta)
| Object | ZOrder Object with this method |
| ZOrderDelta | LongInteger Specifies by how many layers DIAdem moves the object. |
The following example generates a filled circle and a filled rectangle and then moves the rectangle behind the circle.
| VBScript | Python |
Dim oMyCircle, oMyFrame Call Report.NewLayout() Set oMyCircle = Report.ActiveSheet.Objects.Add(eReportObjectCircle,"MyCircle") Call oMyCircle.BackgroundColor.SetPredefinedColor(ePredefinedColorBlue) Set oMyFrame = Report.ActiveSheet.Objects.Add(eReportObjectFrame,"MyFrame") Call oMyFrame.BackgroundColor.SetPredefinedColor(ePredefinedColorRed) Call oMyFrame.Position.ZOrder.Move(-1) Call Report.Refresh()