
'Declaration
<System.Runtime.InteropServices.ClassInterfaceAttribute(ClassInterfaceType.AutoDual)> <System.ComponentModel.TypeConverterAttribute(Nevron.Chart.NAxisTypeConverter)> <System.Xml.Serialization.XmlIncludeAttribute(Nevron.Chart.NCartesianAxis)> <NIconAttribute("Resources.Icons.Axes.VertAxis.png")> <System.SerializableAttribute()> Public MustInherit Class NAxis Inherits NAxisBase Implements INChartElement, INChartElementContainer, INHitTestable, INMaster, INPreOrderPaintable2D, INPreOrderPaintable3D, INSlave, Nevron.Dom.INAtomicElement, Nevron.Dom.INAttributeContainer, Nevron.Dom.INAttributeObserver, Nevron.Dom.INElement, Nevron.Dom.INElementContainer, Nevron.Dom.INIdentifiable, Nevron.Dom.INNamed, Nevron.Dom.INNode, Nevron.Dom.INNodeContainer, Nevron.Dom.INUniquelyIdentifiable, Nevron.Editors.INDomEditableNode, Nevron.INReferenceHolder, Nevron.INReferenceProvider
'Usage
Dim instance As NAxis
[System.Runtime.InteropServices.ClassInterface(ClassInterfaceType.AutoDual)] [System.ComponentModel.TypeConverter(Nevron.Chart.NAxisTypeConverter)] [System.Xml.Serialization.XmlInclude(Nevron.Chart.NCartesianAxis)] [NIcon("Resources.Icons.Axes.VertAxis.png")] [System.Serializable()] public abstract class NAxis : NAxisBase, INChartElement, INChartElementContainer, INHitTestable, INMaster, INPreOrderPaintable2D, INPreOrderPaintable3D, INSlave, Nevron.Dom.INAtomicElement, Nevron.Dom.INAttributeContainer, Nevron.Dom.INAttributeObserver, Nevron.Dom.INElement, Nevron.Dom.INElementContainer, Nevron.Dom.INIdentifiable, Nevron.Dom.INNamed, Nevron.Dom.INNode, Nevron.Dom.INNodeContainer, Nevron.Dom.INUniquelyIdentifiable, Nevron.Editors.INDomEditableNode, Nevron.INReferenceHolder, Nevron.INReferenceProvider
Dim axis As NAxis = NChart.Axis(StandardAxis.PrimaryY);
NAxis axis = NChart.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 NAxis = NChart.Axes.AddCustomAxis(AxisOrientation.Vertical,AxisDockZone.FrontRight) ' save the axis id Dim nAxisId As Integer = axis.AxisId ... ' obtain a reference to the axis with the saved id Dim customAxis As NAxis = NChart.Axis(nAxisId)
// create a custom vertical axis NAxis axis = NChart.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisDockZone.FrontRight); // save the axis id int nAxisId = axis.AxisId; ... // obtain a reference to the axis with the saved id NAxis customAxis = NChart.Axis(nAxisId);
The NAxis class implements support for the following axis features:
System.Object
Nevron.Chart.NChartNode
Nevron.Chart.NChartElement
Nevron.Chart.NChartElementContainer
Nevron.Chart.NAxisBase
Nevron.Chart.NAxis
Nevron.Chart.NCartesianAxis
Nevron.Chart.NPolarAxis
Nevron.Chart.NRadarAxis
Nevron.Chart.NTernaryAxis
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