DIAdem Help

Object: CurveLegendColumn

  • Updated2024-09-12
  • 1 minute(s) read

Object: CurveLegendColumn

The CurveLegendColumn object provides the properties of a column from the curve legend in DIAdem REPORT.

The following example generates a 2D axis system with a curve, displays the associated legend, and adds a column to this legend.

VBScriptPython

 

Dim oMy2DaxisSystem, oMy2DCurve, oMyLegendColumn
Call Report.NewLayout()
Set oMy2DaxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem,"My2DAxisSystem")
Set oMy2DCurve = oMy2DaxisSystem.Curves2D.Add(e2DShapeLine, "MyNewCurve")
oMy2DCurve.Shape.XChannel.Reference = "[1]/[1]"
oMy2DCurve.Shape.YChannel.Reference = "[1]/[2]"
oMy2DaxisSystem.CurveLegend.Visible = True
Set oMyLegendColumn = oMy2DaxisSystem.CurveLegend.Columns.Add()
oMyLegendColumn.Type = eLegendTextComment
Call Report.Refresh()

Properties

RelativeWidth | Text | Title | Type