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

    Protected Fields
     NameDescription
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected FieldThis member is reserved for internal use and is not intended to be used directly from your code.  
    Top
    Public Properties
     NameDescription
    Public PropertyRetrieves the axis identificator - an unique number associated with each axis.  
    Public PropertyControls the shape of the axis.  
    Public PropertySpecifies the border of the axis.  
    Public PropertyGives you access to the collection of AxisConstLine objects.  
    Public PropertyGives you access to the collection of AxisLabel objects.  
    Public PropertyGives you access to the Date Time Scale of the axis.  
    Public PropertyGives you access to the Dimension Scale of the axis.  
    Public PropertySpecifies the fill effect of the axis.  
    Public PropertyControls the length of the major inner ticks.  
    Public PropertySpecifies the line properties of the inner tick lines.  
    Public PropertyGives you access to the Interactivity object of the axis.  
    Public PropertyGives you access to the collection of strings used for axis labels.  
    Public PropertyGives you access to the Logarithmic Scale of the axis.  
    Public PropertySpecifies the line properties of the major grid lines.  
    Public PropertyGives you access to the array of major ticks.  
    Public PropertySpecifies the line properties of the minor grid lines.  
    Public PropertyControls the length of the minor ticks.  
    Public PropertyGives you access to the line properties applied on the minor ticks.  
    Public PropertyGives you access to the array of minor ticks.  
    Public PropertyGives you access to the Numeric Scale of the axis.  
    Public PropertyControls the length of the major outer ticks.  
    Public PropertySpecifies the line properties of the outer tick lines.  
    Public PropertySpecifies the offset of the axis from the original position determined by the component.  
    Public PropertyControls the predefined position of the axis.  
    Public PropertyGives you access to the axis ruler.  
    Public PropertyControls the scale mode of the axis.  
    Public PropertyControls the number of the stagger levels.  
    Public PropertyControls the offset of the staggered texts.  
    Public PropertyWhen set to true the axis texts are displayed in a stagger manner.  
    Public PropertyGives you access to the collection of AxisStripe objects.  
    Public PropertyGives you access to the text properties applied on the axis texts.  
    Public PropertyControls the displayed axis title.  
    Public PropertyGives you access to the text properties applied on the axis title.  
    Public PropertyGives you access to the ValueFormat object specifying the formatting of the values displayed at the axis major ticks.  
    Public PropertyControls the visibility of the axis.  
    Public PropertyControls the width of the axis when it is displayed with Tube or Bar style.  
    Top
    Public Methods
     NameDescription
    Public MethodCreates an identical copy of this axis object  
    Public MethodConverts a model coordinate to scale value  
    Public MethodConverts a scale value to model coordninate  
    Public MethodDetermines whether the major gridlines are displayed at the specified chart wall.  
    Public MethodDetermines whether the minor gridlines are displayed at the specified chart wall.  
    Public MethodCreates a user control which can be used for this object visual editing  
    Public MethodOverloaded. Dynamically positions an axis relative to a value of another axis.  
    Public MethodShows the major lines at the specified wall.  
    Public MethodShows the minor lines at the specified wall.  
    Public MethodSets a predefined layout for the axis texts. A predefined text layout is a specific combination of text offset, alignment, orientation and stagger.  
    Public MethodShows the axis const line collection editor  
    Public MethodShows the axis label collection editor  
    Public MethodShows the axis stripe collection editor  
    Top
    Protected Methods
     NameDescription
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Protected MethodThis member is reserved for internal use and is not intended to be used directly from your code.  
    Top
    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