Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Axis Class
Members


In This Topic
    Axis Class
    In This Topic
    The Axis class is the base class of all axes displayed by the Xceed Chart for WinForms component.
    Object Model
    Axis Class
    Syntax
    'Declaration
     
    <ClassInterfaceAttribute(ClassInterfaceType.AutoDual)>
    <TypeConverterAttribute(Xceed.Chart.Core.AxisConverter)>
    <SerializableAttribute()>
    Public MustInherit Class Axis 
    'Usage
     
    Dim instance As Axis
    [ClassInterface(ClassInterfaceType.AutoDual)]
    [TypeConverter(Xceed.Chart.Core.AxisConverter)]
    [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:
    • axis identification
    • appearance control
    • scale control
    • major and minor tick control
    • major and minor gridline control
    • position control
    • text format control
    • title
    • stagger control
    • access to the associated constant lines
    • access to the associated strip lines
    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