ChartArea.Axes Property

.NET Framework 4.6 and 4.5

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

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

public Axis[] Axes { get; set; }

Property Value

Type: System.Windows.Forms.DataVisualization.Charting.Axis[]
An array of Axis objects that represents all axes used by a chart area.

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft