Back to Devexpress

HatchFillOptions.HatchStyle Property

corelibraries-devexpress-dot-xtracharts-dot-hatchfilloptions-4a8f5cd0.md

latest4.1 KB
Original Source

HatchFillOptions.HatchStyle Property

Gets or sets the hatch style used for background filling.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[Browsable(false)]
public HatchStyle HatchStyle { get; set; }
vb
<Browsable(False)>
Public Property HatchStyle As HatchStyle

Property Value

TypeDescription
HatchStyle

A HatchStyle enumeration value.

|

Remarks

The HatchStyle property specifies the hatch pattern used to fill a specific chart element.

Note

Use the HatchFillOptions.DXHatchStyle property instead of HatchStyle to set the hatch style in non-Windows environments.

The following code snippets (auto-collected from DevExpress Examples) contain references to the HatchStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-chart-draw-a-custom-legend-marker-for-a-series-point/CS/CustomSeriesPointDrawingSample/Form1.cs#L90

csharp
options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch;
    ((HatchFillOptions)options.FillStyle.Options).HatchStyle = HatchStyle.DarkDownwardDiagonal;
}

winforms-chart-draw-a-custom-legend-marker-for-a-series/CS/CustomDrawingSample/Form1.cs#L93

csharp
options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch;
    ((HatchFillOptions)options.FillStyle.Options).HatchStyle = HatchStyle.DarkDownwardDiagonal;
}

winforms-chart-draw-a-custom-legend-marker-for-a-series-point/VB/CustomSeriesPointDrawingSample/Form1.vb#L92

vb
options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch
    CType(options.FillStyle.Options, DevExpress.XtraCharts.HatchFillOptions).HatchStyle = System.Drawing.Drawing2D.HatchStyle.DarkDownwardDiagonal
End If

winforms-chart-draw-a-custom-legend-marker-for-a-series/VB/CustomDrawingSample/Form1.vb#L93

vb
options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch
    CType(options.FillStyle.Options, HatchFillOptions).HatchStyle = HatchStyle.DarkDownwardDiagonal
End If

See Also

FillStyle2D.FillMode

FillStyle3D.FillMode

Options

HatchFillOptions Class

HatchFillOptions Members

DevExpress.XtraCharts Namespace