Spread WinRT Documentation
GrapeCity.Xaml.SpreadSheet.Data Namespace / AxisPosition Enumeration
Example Example


In This Topic
    AxisPosition Enumeration
    In This Topic
    Specifies the axis position.
    Syntax
    'Declaration
     
    Public Enum AxisPosition 
       Inherits System.Enum
    'Usage
     
    Dim instance As AxisPosition
    public enum AxisPosition : System.Enum 
    Members
    MemberDescription
    FarSpecifies that the position is far.
    NearSpecifies that the position is near.
    Example
    This example sets the AxisPosition enumeration.
    GrapeCity.Xaml.SpreadSheet.Data.SpreadChart chart = new GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0,0, 200, 200);
    gcSpreadSheet1.ActiveSheet.SetArray(0, 0, new object[,] { { 1 }, { 2 }, { 3 }, { 4 }, { 5 }, { 6 }, { 7 }, { 8 }, { 9 }, { 10 } });
    //chart.AxisX.AxisPosition = GrapeCity.Xaml.SpreadSheet.Data.AxisPosition.Far;
    chart.AxisX.CrossAt = 3;
    //chart.AxisY.CrossAt = 3;
    gcSpreadSheet1.ActiveSheet.Charts.Add(chart);
    Dim chart As New GrapeCity.Xaml.SpreadSheet.Data.SpreadChart("Chart", GrapeCity.Xaml.SpreadSheet.Data.SpreadChartType.BarStacked, "Sheet1!$A$1:$A$7", 0,0, 200, 200)
    gcSpreadSheet1.ActiveSheet.SetArray(0, 0, new object(,) { { 1 }, { 2 }, { 3 }, { 4 }, { 5 }, { 6 }, { 7 }, { 8 }, { 9 }, { 10 } })
    'chart.AxisX.AxisPosition = GrapeCity.Xaml.SpreadSheet.Data.AxisPosition.Far
    chart.AxisX.CrossAt = 3
    'chart.AxisY.CrossAt = 3
    gcSpreadSheet1.ActiveSheet.Charts.Add(chart)
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Xaml.SpreadSheet.Data.AxisPosition

    See Also