Back to Devexpress

Axis.Visible Property

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

latest4.0 KB
Original Source

Axis.Visible Property

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

Declaration

csharp
bool Visible { get; set; }
vb
Property Visible As Boolean

Property Value

TypeDescription
Boolean

true , if the axis is visible; otherwise, false. The default is true.

|

Remarks

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

csharp
// Hide the category axis.
chart.PrimaryAxes[0].Visible = false;

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/ChartSheetActions.cs#L59

csharp
// Hide the category axis.
chart.PrimaryAxes[0].Visible = false;

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/ChartActions.cs#L74

csharp
// Hide the category axis
chart.PrimaryAxes[0].Visible = false;

wpf-spreadsheet-chart-api/VB/SpreadsheetWPFChartAPISamples/CodeExamples/ChartSheetActions.vb#L58

vb
' Hide the category axis.
chart.PrimaryAxes(0).Visible = False

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/CodeExamples/ChartSheetActions.vb#L57

vb
' Hide the category axis.
chart.PrimaryAxes(0).Visible = False

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/ChartActions.vb#L73

vb
' Hide the category axis
chart.PrimaryAxes(0).Visible = False

See Also

Axis Interface

Axis Members

DevExpress.Spreadsheet.Charts Namespace