Back to Devexpress

NumericIntervalOptions.GridLayoutMode Property

corelibraries-devexpress-dot-xtracharts-dot-numericintervaloptions-51f69fc9.md

latest4.3 KB
Original Source

NumericIntervalOptions.GridLayoutMode Property

Gets or sets the value that specifies the alignment of grid lines, major tickmarks and axis labels.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
GridLayoutMode

The value that specifies alignment.

|

Available values:

NameDescription
GridAndLabelCentered

A grid line, major tickmark, axis label are in an interval center.

| | GridShiftedLabelCentered |

A grid line and major tickmark are shifted to an interval start value. An axis label is in the interval center.

| | GridAndLabelShifted |

A grid line, major tickmark, axis label are shifted to an interval start value.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to GridLayoutMode
NumericScaleOptions

.IntervalOptions .GridLayoutMode

|

Remarks

The following alignments are available:

The GridLayoutMode valueImage
GridAndLabelCentered
GridAndLabelShifted
GridShiftedLabelCentered

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridLayoutMode 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-plot-xy-series-with-histogram/CS/Form1.cs#L43

csharp
diagram.AxisX.WholeRange.SideMarginsValue = 0;
diagram.AxisX.NumericScaleOptions.IntervalOptions.GridLayoutMode = GridLayoutMode.GridShiftedLabelCentered;
diagram.AxisX.NumericScaleOptions.IntervalOptions.Count = BinCount;

winforms-charts-plot-xy-series-with-histogram/VB/Form1.vb#L70

vb
diagram.AxisX.WholeRange.SideMarginsValue = 0
diagram.AxisX.NumericScaleOptions.IntervalOptions.GridLayoutMode = GridLayoutMode.GridShiftedLabelCentered
diagram.AxisX.NumericScaleOptions.IntervalOptions.Count = BinCount

See Also

NumericIntervalOptions Class

NumericIntervalOptions Members

DevExpress.XtraCharts Namespace