.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Axis.CrossPosition Property

Gets or sets a value that specifies where the value axis crosses the category axis on a 2-D chart.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll


AxisCrossPosition CrossPosition { get; set; }

Property Value

Type Description

An AxisCrossPosition enumeration value specifying the crossing point location.


Use the CrossPosition property to specify whether the value axis should cross the category axis between categories or on categories. Note that this property affects the appearance of a chart only if it is set for the value axis.

The table below shows how the CrossPosition property works (the chart is displayed in Microsoft® Excel®).

chart.PrimaryAxes[1].CrossPosition = AxisCrossPosition.OnTickMarks chart.PrimaryAxes[1].CrossPosition = AxisCrossPosition.BetweenTickMarks
SpreadsheetAxisPosition_OnTickMarks SpreadsheetAxisPosition_BetweenTickMarks


The CrossPosition property has no effect on the visual appearance of a chart when the document is loaded in the SpreadsheetControl. However, the property can be accessed in code, exported in supported formats and visualized in Microsoft Excel.

See Also