GradientAngle: Double;
The GradientAngle property determines a gradient angle.
This example assumes that there is the Chart object of the IChart type.
Sub Angle;
Var
Chart : IChart;
Ground : IChartBackgroundInfo;
Begin
Ground := Chart.ChartArea.BackgroundInfo;
Ground.Type := ChartBackGroundType.Gradient;
Ground.Color := GxColor.FromName("Blue");
Ground.GradientColor := GxColor.FromName("Red");
Ground.GradientAngle := 30;
End Sub Angle;
After executing the example the chart area is filled with a red gradient with the gradient angle equal to 30 degrees.
See also: