DIAdem Help

Method: Move for ZOrder

  • Updated2024-09-12
  • 1 minute(s) read

Method: Move for ZOrder

Moves an object in front of or behind the other objects in a worksheet in DIAdem REPORT.

Object.Move(ZOrderDelta)
ObjectZOrder
Object with this method
ZOrderDeltaLongInteger
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.

VBScriptPython

 

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()