officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-axis-a3b96df0.md
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.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
AxisCrossPosition CrossPosition { get; set; }
Property CrossPosition As AxisCrossPosition
| Type | Description |
|---|---|
| AxisCrossPosition |
An AxisCrossPosition enumeration value specifying the crossing point location.
|
Available values:
| Name | Description |
|---|---|
| BetweenTickMarks |
Specifies that the value axis should cross the category axis between data markers.
| | OnTickMarks |
Specifies that the value axis should cross the category axis at the midpoint of a category.
|
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 |
|---|---|
Note
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