IChartBackgroundInfo.Color

Syntax

Color: IGxColor;

Description

The Color property allows to set the base fill color.

Comments

Use the IGxColor interface to work with available colors.

Example

Below is given an example of applying a fill for the chart area. This example assumes that there is the Chart object of the IChart type.

Sub Color;

Var

Chart : IChart;

Begin

Chart.ChartArea.BackgroundInfo.Type := ChartBackgroundType.Color; //set solid fill type

Chart.ChartArea.BackgroundInfo.Color := New GxColor.CreateARGB( 255, 245, 120, 255);

End Sub Color;

After executing the example the chart area is filled with solid lilac color.

See also:

IChartBackgroundInfo | IChartBackgroundInfo.Type