Xceed Chart for WinForms v4.4 Documentation
Axis Class
Members 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace : Axis Class
The Axis class is the base class of all axes displayed by the Xceed Chart for WinForms component.
Object Model
Axis Class
Syntax
'Declaration
 
<TypeConverterAttribute("Xceed.Chart.Core.AxisConverter, Xceed.Chart.Core.v4.4, Version=4.4.100.0, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")>
<ClassInterfaceAttribute(ClassInterfaceType.AutoDual)>
<SerializableAttribute()>
Public MustInherit Class Axis 
'Usage
 
Dim instance As Axis
[TypeConverter("Xceed.Chart.Core.AxisConverter, Xceed.Chart.Core.v4.4, Version=4.4.100.0, Culture=neutral, PublicKeyToken=ba83ff368b7563c6")]
[ClassInterface(ClassInterfaceType.AutoDual)]
[Serializable()]
public abstract class Axis 
Remarks
Each axis displayed by the Xceed Chart for WinForms component is represented by a class derived from this class. The user can obtain a reference to the five standard axes with the help of the Axis method of the Chart class. The following code obtains a reference to the PrimaryY axis.

Dim axis As Axis = Chart.Axis(StandardAxis.PrimaryY);


Axis axis = Chart.Axis(StandardAxis.PrimaryY);

A reference to a custom axis can be obtained with the help of the second override of the Axis mehtod which receives a Int32 parameter which is the axis id. The following code demonstrates this.

' create a custom vertical axis
Dim axis As Axis =  Chart.Axes.AddCustomAxis(AxisOrientation.Vertical,AxisPredefinedPosition.FrontRight) 
' save the axis id 
Dim nAxisId As Integer =  axis.AxisId 
...
' obtain a reference to the axis with the saved id
Dim customAxis As Axis =  Chart.Axis(nAxisId)


// create a custom vertical axis
Axis axis = Chart.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisPredefinedPosition.FrontRight);
// save the axis id 
int nAxisId = axis.AxisId;
...
// obtain a reference to the axis with the saved id
Axis customAxis = Chart.Axis(nAxisId);

The Axis class implements support for the following axis features:
Inheritance Hierarchy

System.Object
   Xceed.Chart.Core.Axis
      Xceed.Chart.Core.VerticalAxis

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Axis Members
Xceed.Chart.Core Namespace
Chart Class
StandardAxis Enumeration
AxisPredefinedPosition Enumeration
AxisOrientation Enumeration