Class CurveItem.Comparer
Compares CurveItem's based on the point value at the specified index and for the specified axis. Sort()
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
public class Comparer : IComparer<CurveItem>
Constructors
| Improve this Doc View SourceComparer(SortType, Int32)
Constructor for Comparer.
Declaration
public Comparer(SortType type, int index)
Parameters
Type | Name | Description |
---|---|---|
SortType | type | The axis type on which to sort. |
Int32 | index | The index number of the point on which to sort |
Methods
| Improve this Doc View SourceCompare(CurveItem, CurveItem)
Compares two CurveItems using the previously specified index value and axis. Sorts in descending order.
Declaration
public int Compare(CurveItem l, CurveItem r)
Parameters
Type | Name | Description |
---|---|---|
CurveItem | l | Curve to the left. |
CurveItem | r | Curve to the right. |
Returns
Type | Description |
---|---|
Int32 | -1, 0, or 1 depending on l.X's relation to r.X |