Object: ZOrder
- Updated2024-09-12
- 1 minute(s) read
(ObjectPosition | ObjectPositionXY) > Object: ZOrder
Object: ZOrder
The ZOrder object provides the object order in DIAdem REPORT.
The following example displays the type, the name, and the level of all objects in the current worksheet:
| 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()