IChartBackgroundInfo.Color

Syntax

Color: IGxColor;

Description

The Color property enables the user to determine a base fill color.

Comments

Use the IGxColor interface to work with available colors.

Example

Below is the example of applying 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