IChartSelectedSeries.Background

Fore Syntax

Background: IChartBackgroundInfo;

Fore.NET Syntax

Background: Prognoz.Platform.Interop.Chart.IChartBackgroundInfo;

Description

The Background property determines the fill options of the selected collection of data series.

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;
   chartBI: IChartBackgroundInfo;
Begin
   SelectedSeries:= UiChart1.Chart.SelectedSeries;
   SelectedSeries.Add (2);
   chartBI :=SelectedSeries.Background;
   chartBI.Color := New GxColor.CreateRGB(245120255);   
End Sub Button1OnClick;

Clicking Button1 changes the fill color of the selected series to purple.

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;
Imports Prognoz.Platform.Interop.Drawing;

...

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    SelectedSeries: IChartSelectedSeries;
    chartBI: IChartBackgroundInfo;
    color: GxColorClass_2;
Begin
    SelectedSeries:= UiChartNet1.ChartUi.Chart.SelectedSeries;
    SelectedSeries.Add (2);
    chartBI := SelectedSeries.Background;
    color := New GxColorClass_2();
    color.CreateRGB(145120255);
    chartBI.Color := color;
End Sub;

Clicking the Button1 button changes the fill color of the selected series to purple.

See also:

IChartSelectedSeries