Back to Devexpress

Axis.CrossPosition Property

officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-axis-a3b96df0.md

latest2.5 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
AxisCrossPosition CrossPosition { get; set; }
vb
Property CrossPosition As AxisCrossPosition

Property Value

TypeDescription
AxisCrossPosition

An AxisCrossPosition enumeration value specifying the crossing point location.

|

Available values:

NameDescription
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.

|

Remarks

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.OnTickMarkschart.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

Axis Interface

Axis Members

DevExpress.Spreadsheet.Charts Namespace