Back to Devexpress

FillStyle2D.FillMode Property

corelibraries-devexpress-dot-xtracharts-dot-fillstyle2d.md

latest6.6 KB
Original Source

FillStyle2D.FillMode Property

Gets or sets the filling mode for an element’s surface.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public FillMode FillMode { get; set; }
vb
Public Property FillMode As FillMode

Property Value

TypeDescription
FillMode

A FillMode enumeration value which specifies how an element’s surface is filled.

|

Available values:

NameDescription
Empty

The fill mode is not specified and thus the default fill mode from the appearance is used. Note that series labels do not support the transparent fill when Empty mode is enabled and DirectX rendering is used. For more information, see the following topic: technical limitations.

| | Solid |

Specifies that an element’s surface should be filled in the solid mode.

| | Gradient |

Specifies that an element’s surface should be filled in gradient mode.

| | Hatch |

Specifies that an element’s surface should be filled in hatch mode.

|

Remarks

Note that if the FillMode property is set to FillMode.Empty, the FillMode property value is obtained from the current appearance, which is specified by the ChartControl.AppearanceName (or WebChartControl.AppearanceName) property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FillMode 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-implement-custom-drawing-for-the-chartcontrol-that-is-bound-to-the-pivotgrid-control/CS/WindowsFormsApplication8/Form1.cs#L51

csharp
options.FillStyle.FillMode = FillMode.Hatch;
options.Shadow.Color = Color.Azure;

webchartcontrol-how-to-change-auto-created-series-appearance/CS/BoundDataChangedExample/WebForm1.aspx.cs#L30

csharp
view.Color = System.Drawing.Color.Orange;
    view.FillStyle.FillMode = FillMode.Solid;
}

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

csharp
if (isSelected && options != null) {
    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#L92

csharp
if (options != null && isSelected) {
    options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch;
    ((HatchFillOptions)options.FillStyle.Options).HatchStyle = HatchStyle.DarkDownwardDiagonal;

winforms-implement-custom-drawing-for-the-chartcontrol-that-is-bound-to-the-pivotgrid-control/VB/WindowsFormsApplication8/Form1.vb#L40

vb
Public Shared Sub UpdateDrawOptions(ByVal options As BarDrawOptions)
    options.FillStyle.FillMode = FillMode.Hatch
    options.Shadow.Color = Color.Azure

webchartcontrol-how-to-change-auto-created-series-appearance/VB/BoundDataChangedExample/WebForm1.aspx.vb#L33

vb
view.Color = System.Drawing.Color.Orange
    view.FillStyle.FillMode = FillMode.Solid
End If

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

vb
If isSelected AndAlso options IsNot Nothing Then
    options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch
    CType(options.FillStyle.Options, DevExpress.XtraCharts.HatchFillOptions).HatchStyle = System.Drawing.Drawing2D.HatchStyle.DarkDownwardDiagonal

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

vb
If options IsNot Nothing AndAlso isSelected Then
    options.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Hatch
    CType(options.FillStyle.Options, HatchFillOptions).HatchStyle = HatchStyle.DarkDownwardDiagonal

See Also

FillStyle2D Class

FillStyle2D Members

DevExpress.XtraCharts Namespace