Object: ObjectPosition
- Updated2024-09-12
- 1 minute(s) read
(2DAxisSystem | 2DTable | 3DAxisSystem | 3DTable | Arrow | Circle | Comment | FormulaDisplay | Frame | Image | PieChart | PolarSystem | RTFText | Spider) > Object: ObjectPosition
Object: ObjectPosition
The ObjectPosition object provides the position of objects in DIAdem REPORT. Because you can use either the Bottom, Height, Left, Right, Top, and Width for the ObjectPositionDefinedByBorders property, or the Height, Width, X1, X2, Y1, and Y2 for the ObjectPositionDefinedByCoordinates property to specify the position, these properties impact each other and the value of the property set first can be modified by another property.
The following example generates a formula graphic and uses the coordinates of the corner points to position the formula graphic:
| VBScript | Python |
Dim oMyFormula, oMyPosFormula Call Report.NewLayout() Set oMyFormula = Report.ActiveSheet.Objects.Add(eReportObjectFormulaDisplay ,"MyFormular") Set oMyPosFormula = oMyFormula.Position.ByCoordinate oMyFormula.Text = "a^2+b^2=c^2" oMyPosFormula.X1 = 10 oMyPosFormula.X2 = 30 oMyPosFormula.Y1 = 10 oMyPosFormula.Y2 = 25 Call Report.Refresh()
Properties
Returned From
2DAxisSystem.Position | 2DTable.Position | 3DAxisSystem.Position | 3DTable.Position | Arrow.Position | Circle.Position | Comment.Position | FormulaDisplay.Position | Frame.Position | Image.Position | PieChart.Position | PolarSystem.Position | RTFText.Position | Spider.Position