Object: FrameElement
- Updated2024-09-12
- 1 minute(s) read
(ReportObjects | SelectedObjects) > FormulaDisplay > Object: FrameElement
Object: FrameElement
The FrameElement object provides the frame for a formula graphic in DIAdem REPORT.
The following example generates a formula graphic with a frame and an arrow:
| VBScript | Python |
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()