IChartBackgroundInfo.GradientColor

Syntax

GradientColor: IGxColor;

Description

The GradientColor property determines a gradient color.

Comments

Use the IGxColor interface to work with available colors.

Example

This example assumes that there is the Chart object of the IChart type.

Sub Gradient;

Var

Chart : IChart;

Ground : IChartBackgroundInfo;

Begin

Ground := Chart.ChartArea.BackgroundInfo;

Ground.Type := ChartBackGroundType.Gradient;

Ground.Color := GxColor.FromName("Blue");

Ground.GradientColor := GxColor.FromName("Red");

End Sub Gradient;

After executing the example the chart area is filled with a gradient where blue is the fill color and red is the gradient color.

See also:

IChartBackgroundInfo | IChartBackgroundInfo.Type