IChartAxisLevelLine.Pen

Syntax

Pen: IGxPen;

Description

The Pen property determines parameters for drawing a level line.

Example

This unit is connected to the regular report, which sheet contains a chart. The chart must contain level lines.

Sub Custom;

Var

Chart: IChart;

LevelLine: IChartAxisLevelLine;

Begin

Chart := PrxReport.ActiveReport.ActiveSheet.Table.Objects.Item(0).Extension As IChart;

LevelLine := Chart.AxisY.LevelLines.Item(0);

LevelLine.Pen := New GxPen.CreateSolid(New GxColor.FromName("Blue"), 1.00);

PrxReport.ActiveReport.ActiveSheet.Recalc;

End Sub Custom;

After executing the example the first level line on the chart is displayed in blue and its thickness is equal to 1 point:

See also:

IChartAxisLevelLine