IChartSelectedSeries.Add

Fore Syntax

Add (Index: Integer);

Fore.NET Syntax

Add(System.Int32);

Parameters

Index. The data series index.

Description

The Add method adds a series to the collection of the selected data series of the chart by the specified index.

Fore Example

Executing the example requires a form, the Button1 button located on this form, the ChartBox component and UiChart component used as a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    SelectedSeries: IChartSelectedSeries;
Begin
    SelectedSeries:= UiChart1.Chart.SelectedSeries;
    SelectedSeries.Add (2);
End Sub Button1OnClick;

Clicking Button1 adds a series with the index "2" to the collection of the selected series.

Fore.NET Example

Executing the example requires a form, the Button1 button located on this form, the ChartBoxNet component and UiChartNet component used as a data source.

Imports Prognoz.Platform.Forms.Net;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Chart;

...

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    SelectedSeries: IChartSelectedSeries;
Begin
    SelectedSeries:= UiChartNet1.ChartUi.Chart.SelectedSeries;
    SelectedSeries.Add (2);
End Sub;

Clicking the Button1 button adds a series with the index "2" to the collection of the selected series .

See also:

IChartSelectedSeries