Dundas Chart for ASP.NET
Axes Property
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl Namespace > ChartArea Class : Axes Property


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


Reference to the Axes

Syntax

Visual Basic (Declaration)  
Public Property Axes As Axis()
Visual Basic (Usage) Copy Code
Dim instance As ChartArea
Dim value() As Axis
 
instance.Axes = value
 
value = instance.Axes
C#  
public Axis[] Axes {get; set;}

Return Value

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

Example

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;

Remarks

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.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.