WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartAxisRangeArgs - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartAxisRangeArgs

    Represents chart axis range event arguments.

    Inheritance
    System.Object
    ChartAxisRangeArgs
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Chart
    Assembly: Syncfusion.Chart.Wpf.dll
    Syntax
    public class ChartAxisRangeArgs
    Remarks

    Both Primary and Secondary Axis comes with Rangechanged event. This event occurs when the Range of the axis is changed. We could get the old and new range from the RangeChanged event.

    Examples
     Chart1.Areas[0].PrimaryAxis.RangeChanged +=new
    ChartAxisRangeEventHandler(PrimaryAxis_RangeChanged);
    void PrimaryAxis_RangeChanged(object sender, ChartAxisRangeArgs e)
     {
          Console.WriteLine (e.NewValue.ToString();
     }

    Constructors

    ChartAxisRangeArgs(ChartAxis, DoubleRange)

    Initializes a new instance of the ChartAxisRangeArgs class.

    Declaration
    public ChartAxisRangeArgs(ChartAxis axis, DoubleRange newValue)
    Parameters
    Type Name Description
    ChartAxis axis

    The axis value.

    DoubleRange newValue

    The new value.

    Properties

    NewValue

    Gets the range new value.

    Declaration
    public DoubleRange NewValue { get; }
    Property Value
    Type Description
    DoubleRange

    The new range value.

    OldValue

    Gets the old range value.

    Declaration
    public DoubleRange OldValue { get; }
    Property Value
    Type Description
    DoubleRange

    The range old value.

    See Also

    ChartAxisRangeArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved