IChartAxisLevelLines.Count

Fore Syntax

Count: Integer;

Fore.NET Syntax

Count: integer;

Description

The Count property returns the number of level lines on a chart.

Comments

To add a level line to the chart, use the IChartAxisLevelLines.Add method.

Fore Example

Executing the example requires an express report with the EXPRESS identifier that contains data view as a chart.

Add links to the Metabase, Express, Chart system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    eax: IEaxAnalyzer;
    Chart: IChart;
Begin
    MB := MetabaseClass.Active;
    eax := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    Chart := eax.Chart.Chart;
    Debug.Write("Number of level lines on the X axis: ");
    Debug.WriteLine(Chart.AxisX.LevelLines.Count);
    Debug.Write("Number of level lines on the Y axis: ");
    Debug.WriteLine(Chart.AxisY.LevelLines.Count);
End Sub UserProc;

After executing the example the console window displays the number of level lines on the X and Y axes on the chart.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Chart;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    eax: IEaxAnalyzer;
    Chart: IChart;
Begin
    MB := Params.Metabase;
    eax := MB.ItemById["EXPRESS"].Bind() As IEaxAnalyzer;
    Chart := eax.Chart.Chart;
    System.Diagnostics.Debug.Write("Number of level lines on the X axis: ");
    System.Diagnostics.Debug.WriteLine(Chart.AxisX.LevelLines.Count);
    System.Diagnostics.Debug.Write("Number of level lines on the Y axis: ");
    System.Diagnostics.Debug.WriteLine(Chart.AxisY.LevelLines.Count);
End Sub;

See also:

IChartAxisLevelLines