Class PointsSortByXComparer
Custom comaprer to compare the chart points by x-value.
Inheritance
System.Object
PointsSortByXComparer
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class PointsSortByXComparer : Comparer<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 |