IChartSelectedSeries.Background

Syntax

Background: IChartBackgroundInfo;

Description

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

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.

See also:

IChartSelectedSeries