ChartArea.Axes Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 4.0
Return to top