Gets or sets an array that represents all axes for a chart area.
Reference to the Axes
Visual Basic (Declaration) | |
---|---|
Public Property Axes As Axis() |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public Axis[] Axes {get; set;} |
Return Value
An array of Axis objects that represents all axes used by a chart area.
To set a property of the primary X-axis you could use the following:
C# | Copy Code |
---|---|
Color color = Chart1.ChartAreas["Default"].Axes[0].LineColor; |
The main purpose of this property is to provide access to the axis properties (X, Y, X2, Y2, respectively) at design time.
At run-time the axes for a chart area should be accessed using the individual axis properties (e.g. AxisX, AxisX2, etc.).
If you decide to use this property at run-time (e.g. in an event) you can access an item in this array using an AxisName enumeration member as the identifier.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family