Object: CurveLegendColumnBase
- Updated2024-09-12
- 1 minute(s) read
(Collections | CurveLegend) > CurveLegendColumns > Object: CurveLegendColumnBase
Object: CurveLegendColumnBase
The CurveLegendColumnBase object provides a column for the curve legend of a 2D axis system in DIAdem REPORT.
The CurveLegendColumnBase object corresponds to one of the following objects:
| CurveLegendColumn (IRepCurvelegendContentColumnInt) | Curve Legend |
| CurveLegendColumnPieChart (IRepCurvelegendContentColumnPieChartInt) | Curve legend for the pie chart |
The following example generates a 2D axis system with a curve, displays the associated legend, and adds a column which contains the channel comment to this legend:
| VBScript | Python |
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