officefileapi-devexpress-dot-spreadsheet-dot-charts-dot-axis.md
Gets or sets a value indicating whether the axis should be displayed.
Namespace : DevExpress.Spreadsheet.Charts
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
bool Visible { get; set; }
Property Visible As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if the axis is visible; otherwise, false. The default is true.
|
Use the Visible property to control the visibility of an axis within a chart. Note that the Visible property also affects the visibility of axis elements, such as tick marks and labels.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Visible 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.
wpf-spreadsheet-chart-api/CS/SpreadsheetWPFChartAPISamples/CodeExamples/ChartSheetActions.cs#L59
// Hide the category axis.
chart.PrimaryAxes[0].Visible = false;
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/ChartSheetActions.cs#L59
// Hide the category axis.
chart.PrimaryAxes[0].Visible = false;
// Hide the category axis
chart.PrimaryAxes[0].Visible = false;
wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/ChartSheetActions.vb#L58
' Hide the category axis.
chart.PrimaryAxes(0).Visible = False
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/ChartSheetActions.vb#L57
' Hide the category axis.
chart.PrimaryAxes(0).Visible = False
' Hide the category axis
chart.PrimaryAxes(0).Visible = False
See Also