Object: FrameElement

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

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:

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()

Returned From

FormulaDisplay.Frame

WAS THIS ARTICLE HELPFUL?

Not Helpful