แก้ไข

แชร์ผ่าน


Axis.Enabled Property

Definition

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

public:
 property System::Windows::Forms::DataVisualization::Charting::AxisEnabled Enabled { System::Windows::Forms::DataVisualization::Charting::AxisEnabled get(); void set(System::Windows::Forms::DataVisualization::Charting::AxisEnabled value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.AxisEnabled Enabled { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Enabled : System.Windows.Forms.DataVisualization.Charting.AxisEnabled with get, set
Public Property Enabled As AxisEnabled

Property Value

An AxisEnabled enumeration value. The default value is Auto.

Attributes

Remarks

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.

Note

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.

Applies to