
'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
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:
System.Object
Xceed.Chart.Core.Axis
Xceed.Chart.Core.VerticalAxis
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