officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-chartobject-da43fd66.md
Provides access to a collection of primary axes.
Namespace : DevExpress.Spreadsheet.Charts
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
AxisCollection PrimaryAxes { get; }
ReadOnly Property PrimaryAxes As AxisCollection
| Type | Description |
|---|---|
| AxisCollection |
An AxisCollection object containing primary axes on the chart or null ( Nothing in Visual Basic) if there are no primary axes.
|
Charts of different types may have a different number of primary axes. For example, a chart of the ChartType.Pie has no axes. A chart of the ChartType.ColumnClustered type contains two primary axes - the category axis and the value axis. A chart of the ChartType.Column3DStandard type has three axes - the category axis, the value axis and the series axis. However, a chart may have only one group of primary axes (a group consists of a category, a value and (only for certain 3D chart types) a series axis).
A chart may have a collection of ChartObject.SecondaryAxes in addition to primary axes.
The following code snippets (auto-collected from DevExpress Examples) contain references to the PrimaryAxes 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.
// Set the minimum and maximum values for the chart value axis.
Axis axis = chart.PrimaryAxes[1];
axis.Scaling.AutoMax = false;
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/AxesActions.cs#L22
// Set the minimum and maximum values for the chart value axis.
Axis axis = chart.PrimaryAxes[1];
axis.Scaling.AutoMax = false;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/AxesActions.cs#L22
// Set the minimum and maximum values for the chart value axis.
Axis axis = chart.PrimaryAxes[1];
axis.Scaling.AutoMax = false;
' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/AxesActions.vb#L26
' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/AxesActions.vb#L25
' Set the minimum and maximum values for the chart value axis.
Dim axis As Axis = chart.PrimaryAxes(1)
axis.Scaling.AutoMax = False
See Also