HatchStyle: GxHatchStyle;
The HatchStyle property determines the type of hatching.
This example assumes that there is the Chart object of the IChart type. A bar chart should be used. If required a chart can be transformed into a bar chart by running the command: Chart.Type := 1 As ChartType;
Sub Hatch;
Var
Chart : IChart;
Ground : IChartBackgroundInfo;
Begin
Ground := Chart.Series.Item(0).Background;
Ground.Type := ChartBackgroundType.Hatch;
Ground.Color := New GxColor.CreateARGB(255,255,0,0);
Ground.HatchStyle := GxHatchStyle.DashedUpwardDiagonal;
End Sub Hatch;
After executing the example the series is hatched.
See also: