Object: ArrowElement
- Updated2024-09-12
- 1 minute(s) read
(Comment | FormulaDisplay) > Object: ArrowElement
Object: ArrowElement
The ArrowElement object provides the comment arrow and a formula graphic in DIAdem REPORT.
The following example generates a comment and specifies the position and the appearance of the arrow:
| VBScript | Python |
Dim oMyComment, oMyPosComment, oMyArrow, oMyPosArrow Call Report.NewLayout() Set oMyComment = Report.ActiveSheet.Objects.Add(eReportObjectComment,"MyArrow") Set oMyPosComment = oMyComment.Position.ByCoordinate oMyPosComment.X1 = 10 oMyPosComment.X2 = 30 oMyPosComment.Y1 = 10 oMyPosComment.Y2 = 30 Set oMyArrow = oMyComment.Arrow oMyArrow.ArrowHeadAtBegin = eArrowHeadNone oMyArrow.ArrowHeadAtEnd = eArrowHeadStandardArrow Set oMyPosArrow = oMyArrow.Position oMyPosArrow.XStart = 100 oMyPosArrow.XEnd = 40 oMyPosArrow.YStart = 100 oMyPosArrow.YEnd = 40 Call Report.Refresh()