IChartBackgroundInfo.HatchStyle

Syntax

HatchStyle: GxHatchStyle;

Description

The HatchStyle property determines a hatching type.

Example

This example assumes that there is the Chart object of the IChart type. The chart must be a bar chart. If required, a chart can be transformed into a bar chart by executing 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:

IChartBackgroundInfo | IChartBackgroundInfo.Type