IChartStyleRelativeGroup.Item

Fore Syntax

Item(Index: Integer): Integer;

Fore.NET Syntax

Item[Index: Integer]: Integer;

Parameters

Index. Index of the series in a relative group, to which it belongs.

Description

The Item property returns the absolute index of the series by its index in a relative group of chart series, to which it belongs.

Comments

Absolute index of a series is a sequence number of the specified series among all chart series.

Fore Example

Executing the example requires a form with the UiChart, ChartBox and Button components on the form with the UiChart1, ChartBox1 and Button1 identifiers respectively. The UiChart1 component must be a data source for the ChartBox1 component, and it must have the Mixed type of a scale for a chart.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBox1.Chart;
    Debug.WriteLine(Chart.StyleGroup.Item(0).Item(0).ToString);
End Sub Button1OnClick;

After executing the example on clicking the Button1 component the absolute index of the specified series is displayed in the console.

Fore.NET Example

Executing the example requires a form with the UiChartNet, ChartBoxNet and Button components on the form with the UiChartNet1, ChartBoxNet1 and Button1 identifiers respectively. The UiChartNet1 component must be a data source for the ChartBoxNet1 component and it must have the Mixed type of a scale for a chart.

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    System.Diagnostics.Debug.WriteLine(Chart.StyleGroup.Item[0].Item[0].ToString());
End Sub;

After executing the example on clicking the Button1 component the absolute index of the specified series is displayed in the console.

See also:

IChartStyleRelativeGroup