Back to Devexpress

AxisBase.InterlacedColor Property

corelibraries-devexpress-dot-xtracharts-dot-axisbase-88fffd66.md

latest3.1 KB
Original Source

AxisBase.InterlacedColor Property

Gets or sets the interlaced color.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Color InterlacedColor { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property InterlacedColor As Color

Property Value

TypeDescription
Color

A Color structure which specifies the interlaced color.

|

Remarks

Set the AxisBase.Interlaced property to true to enable axis interlacing. To specify the interlaced fill style use the Axis2D.InterlacedFillStyle property (or Axis3D.InterlacedFillStyle).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the InterlacedColor 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-charts-create-line-chart/CS/Series_LineChart/Form1.cs#L41

csharp
((XYDiagram)lineChart.Diagram).AxisY.Interlaced = true;
((XYDiagram)lineChart.Diagram).AxisY.InterlacedColor = Color.FromArgb(20, 60, 60, 60);
((XYDiagram)lineChart.Diagram).AxisX.NumericScaleOptions.AutoGrid = false;

winforms-charts-create-line-chart/VB/Series_LineChart/Form1.vb#L38

vb
CType(lineChart.Diagram, XYDiagram).AxisY.Interlaced = True
CType(lineChart.Diagram, XYDiagram).AxisY.InterlacedColor = Color.FromArgb(20, 60, 60, 60)
CType(lineChart.Diagram, XYDiagram).AxisX.NumericScaleOptions.AutoGrid = False

See Also

AxisBase Class

AxisBase Members

DevExpress.XtraCharts Namespace