Nevron .NET Vision
Chart for .NET / About Nevron Chart for .NET / Porting From Older Versions / Porting from Q3 2008 to 2009.1
In This Topic
    Porting from Q3 2008 to 2009.1
    In This Topic

    This topic describes the differences in the programming model between Nevron Chart for .NET Q3 2008 and Nevron Chart for .NET 2009.1.

     UseOrigin Property

    The bar and area series UseOrigin property has been replaced with the OriginMode property accepting values from the SeriesOriginMode enumeration. The following code snippets show how to convert old code which sets this code to true:

    [OldCode]

    C#
    Copy Code
    barSeries.UseOrigin = true;
    VB.NET
    Copy Code
    barSeries.UseOrigin = True

     

    [NewCode]

    C#
    Copy Code
    barSeries.OriginMode = SeriesOriginMode.CustomOrigin;
    VB.NET
    Copy Code
    barSeries.OriginMode = SeriesOriginMode.CustomOrigin

     

     PredefinedChartStyle Property

    The PredefinedChartStyle property of the NChart class has been removed. You should use the SetPredefinedChartStyle method instead. The following code snippets show how to convert old code which sets this property:

    [OldCode]

    C#
    Copy Code
    chart.PredefinedChartStyle = PredefinedChartStyle.HorizontalLeft;
    VB.NET
    Copy Code
    chart.PredefinedChartStyle = PredefinedChartStyle.HorizontalLeft

    [NewCode]

    C#
    Copy Code
    chart.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft);
    VB.NET
    Copy Code
    chart.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft)