Property: Position for Arrow

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

Specifies the position of an arrow in a DIAdem REPORT worksheet.

Set oObjectPosition = Object.Position
ObjectArrow
Object with this property
oObjectPositionObjectPosition
Returned object

The following example generates an arrow and specifies the position of this arrow:

Dim oMyArrow, oMyArrowLine, oMyArrowLineColor, oMyArrowPosition
Call Report.NewLayout()
Set oMyArrow = Report.ActiveSheet.Objects.Add(eReportObjectArrow,"MyArrow")

Set oMyArrowPosition = oMyArrow.Position.ByCoordinate
oMyArrowPosition.X1 = 10
oMyArrowPosition.X2 = 40
oMyArrowPosition.Y1 = 30
oMyArrowPosition.Y2 = 90

oMyArrow.ArrowHeadAtBegin = eArrowHeadPoint
oMyArrow.ArrowHeadAtEnd = eArrowHeadStandardArrow

Set oMyArrowLine = oMyArrow.Line
oMyArrowLine.LineType = eLineTypeDotted
oMyArrowLine.Width = eLineWidth0200

Set oMyArrowLineColor = oMyArrowLine.Color
Call oMyArrowLineColor.SetPredefinedColor(eColorIndexGreen)

Call Report.Refresh()

WAS THIS ARTICLE HELPFUL?

Not Helpful