Property: Frame for CurveLegend

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

Specifies the properties of the curve legend frame in an axis system in DIAdem REPORT.

Set oLegendFrame = Object.Frame
ObjectCurveLegend
Object with this property
oLegendFrameLegendFrame
Returned object

The following example generates a 2D axis system with a curve and configures the curve legend:

Dim oMy2DAxisSystem, oMyPosition, oMyCurve, oMyCurveLegend, oMyFrame
Call Report.NewLayout()
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem,"My2DAxisSystem")
Set oMyPosition = oMy2DAxisSystem.Position.ByCoordinate
oMyPosition.X1 = 20
oMyPosition.X2 = 80
oMyPosition.Y1 = 20
oMyPosition.Y2 = 80
Set oMyCurve = oMy2DAxisSystem.Curves2D.Add(e2DShapeLine,"My2DCurve")
oMyCurve.Shape.XChannel.Reference = "[1]/[1]" 
oMyCurve.Shape.YChannel.Reference = "[1]/[2]" 
Set oMyCurveLegend = oMy2DAxisSystem.CurveLegend
oMyCurveLegend.Visible = True
Set oMyFrame = oMyCurveLegend.Frame
oMyFrame.Visible = True
oMyFrame.Color.ColorIndex = eColorIndexDarkGreen
oMyFrame.LineType = eLineTypeSolid
Call Report.Refresh()

WAS THIS ARTICLE HELPFUL?

Not Helpful