Xceed Chart for WinForms v4.4 Documentation
Xceed.Chart.Core.v4.4 Assembly / Xceed.Chart.Core Namespace / Axis Class / AxisId Property
Example


In This Topic
    AxisId Property
    In This Topic
    Retrieves the axis identificator - an unique number associated with each axis.
    Syntax
    'Declaration
     
    <CategoryAttribute("General")>
    <DescriptionAttribute("Retrieves the axis identificator - an unique number associated with each axis")>
    Public ReadOnly Property AxisId As Integer
    'Usage
     
    Dim instance As Axis
    Dim value As Integer
     
    value = instance.AxisId
    [Category("General")]
    [Description("Retrieves the axis identificator - an unique number associated with each axis")]
    public int AxisId {get;}
    Remarks
    The axis IDs of the standard axes are the same as their corresponding values from the StandardAxis enumeration.
    Example
    The following code obtains the id of a custom axis.
    ' create a custom vertical axis
    Dim axis As Axis =  Chart.Axes.AddCustomAxis(AxisOrientation.Vertical,AxisPredefinedPosition.FrontRight) 
    ' save the axis id 
    Dim axisId As Integer =  axis.AxisId
    // create a custom vertical axis
    Axis axis = Chart.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisPredefinedPosition.FrontRight);
    // save the axis id 
    int axisId = axis.AxisId;
    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