Class PointsSortByXComparer
Custom comaprer to compare the chart points by x-value.
Inheritance
System.Object
System.Collections.Generic.Comparer<System.Windows.Point>
PointsSortByXComparer
Implements
System.Collections.IComparer
System.Collections.Generic.IComparer<System.Windows.Point>
Inherited Members
System.Collections.Generic.Comparer<System.Windows.Point>.Create(System.Comparison<System.Windows.Point>)
System.Collections.Generic.Comparer<System.Windows.Point>.Default
System.Collections.Generic.Comparer<System.Windows.Point>.System.Collections.IComparer.Compare(System.Object, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class PointsSortByXComparer : Comparer<Point>, IComparer, IComparer<Point>
Constructors
PointsSortByXComparer()
Declaration
public PointsSortByXComparer()
Methods
Compare(Point, Point)
Compares the specified p1 with the specified p2.
Declaration
public override int Compare(Point point1, Point point2)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | point1 | The point1. |
System.Windows.Point | point2 | The point2. |
Returns
Type | Description |
---|---|
System.Int32 | negative value if point1 < point2 zero if point1 = point2. positive value if point1 > point2 |
Overrides
System.Collections.Generic.Comparer<System.Windows.Point>.Compare(System.Windows.Point, System.Windows.Point)
Implements
System.Collections.IComparer
System.Collections.Generic.IComparer<T>