Back to Devexpress

XYDiagramPaneBase.FillStyle Property

corelibraries-devexpress-dot-xtracharts-dot-xydiagrampanebase-a649e6ef.md

latest3.0 KB
Original Source

XYDiagramPaneBase.FillStyle Property

Gets the diagram pane’s background fill style.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[PersistenceMode(PersistenceMode.InnerProperty)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public RectangleFillStyle FillStyle { get; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property FillStyle As RectangleFillStyle

Property Value

TypeDescription
RectangleFillStyle

A RectangleFillStyle object which specifies the background fill style.

|

Remarks

The FillStyle property provides settings that specify how the pane‘s background is painted. Refer to the RectangleFillStyle class description for detailed information.

The following image demonstrates how the FillStyle property works.

For more information, refer to Panes.

Example

This example demonstrates the possibilities of customizing a chart diagram‘s panes‘ appearance at runtime.

csharp
XYDiagramPane myPane = new XYDiagramPane("The Pane's Name");

myPane.BackColor = Color.Aqua;
myPane.FillStyle.FillMode = FillMode.Empty;

myPane.BorderVisible = true;
myPane.BorderColor = Color.Blue;

myPane.Shadow.Visible = true;
myPane.Shadow.Color = Color.LightGray;
myPane.Shadow.Size = 2;
vb
Dim myPane As New XYDiagramPane("The Pane's Name")

myPane.BackColor = Color.Aqua
myPane.FillStyle.FillMode = FillMode.Empty

myPane.BorderVisible = True
myPane.BorderColor = Color.Blue

myPane.Shadow.Visible = True
myPane.Shadow.Color = Color.LightGray
myPane.Shadow.Size = 2

See Also

BackColor

Panes

XYDiagramPaneBase Class

XYDiagramPaneBase Members

DevExpress.XtraCharts Namespace