ChartArea.Axes Property

Definition

Gets or sets an array that represents all axes for a chart area.

[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.DataVisualization.Charting.AxesArrayConverter))]
public System.Windows.Forms.DataVisualization.Charting.Axis[] Axes { get; set; }

Property Value

Axis[]

An array of Axis objects that represents all axes used by a chart area.

Attributes

Remarks

The main purpose of this property is to provide access to the properties of the X, Y, X2 and Y2 axes at design time.

At run time, the axes for a chart area should be accessed using the individual axis properties, such as AxisX, AxisX2, and so forth.

If you decide to use this property at run time - for example, in an event - you can access an item in this array by specifying an AxisName enumeration member as the identifier.

Applies to

Produkt Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1