corelibraries-devexpress-dot-xtracharts-dot-numericintervaloptions-51f69fc9.md
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
public GridLayoutMode GridLayoutMode { get; set; }
Public Property GridLayoutMode As GridLayoutMode
| Type | Description |
|---|---|
| GridLayoutMode |
The value that specifies alignment.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
You can access this nested property as listed below:
| Object Type | Path to GridLayoutMode |
|---|---|
| NumericScaleOptions |
.IntervalOptions .GridLayoutMode
|
The following alignments are available:
| The GridLayoutMode value | Image |
|---|---|
| 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
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
diagram.AxisX.WholeRange.SideMarginsValue = 0
diagram.AxisX.NumericScaleOptions.IntervalOptions.GridLayoutMode = GridLayoutMode.GridShiftedLabelCentered
diagram.AxisX.NumericScaleOptions.IntervalOptions.Count = BinCount
See Also