Export (0) Print
Expand All

Axis.Enabled Property

.NET Framework 4.6 and 4.5

Gets or sets a value that indicates whether an axis is enabled.

Namespace:  System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

[BindableAttribute(true)]
public AxisEnabled Enabled { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.AxisEnabled
An AxisEnabled enumeration value. The default value is Auto.

If an axis is not enabled, the axis, along with its attributes (tick marks, strip lines, labels, and so forth), will not be displayed.

If an axis is enabled, the axis, along with all its attributes (tick marks, strip lines, labels, and so forth), will be displayed regardless of whether or not it is being used to plot a Series.

If a value of Auto is used, an axis may or may not be displayed, depending on whether it is being used to plot a Series. The axes that are used to plot data are determined by the XAxisType and YAxisType property settings.

NoteNote

If an axis is not enabled but an adjacent axis is using grid lines, one of those grid lines will be displayed in place of the axis that is not enabled. The same situation will occur if the Enabled property of an axis is set to Auto, but the axis is not being used to plot data; the grid line of an adjacent axis will be drawn instead.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft