![]() | DIAdem 2017 Help |
![]() | DIAdem 2018 Help |
![]() | DIAdem 2019 Help |
![]() | DIAdem 2020 Help |
![]() | DIAdem 2020 SP1 Help |
Specifies the formula text of a formula graphic in DIAdem REPORT.
Object.Text
Object | FormulaDisplay Object with this property |
Object.Text | String with read and write access |
The following example generates a formula graphic with a frame and an arrow:
Dim oMyFormula, oMyPosFormula, oMyArrow, oMyFrame 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 = 20 oMyPosFormula.X2 = 40 oMyPosFormula.Y1 = 20 oMyPosFormula.Y2 = 35 Set oMyArrow = oMyFormula.Arrow Call oMyArrow.Line.Color.SetPredefinedColor(ePredefinedColorDarkViolet) oMyArrow.Line.LineType = eLineTypeSolid oMyArrow.Line.Width = eLineWidth0100 oMyArrow.ArrowHeadAtBegin = eArrowHeadNormArrow Set oMyFrame = oMyFormula.Frame oMyFrame.BorderLine.Color.SetPredefinedColor(ePredefinedColorDarkGreen) oMyFrame.BackgroundColor.SetPredefinedColor(ePredefinedColorYellow) Call Report.Refresh()
Helpful
Not Helpful