Class CurveItem.Comparer
Compares CurveItem's based on the point value at the specified index and for the specified axis. System.Collections.ArrayList.Sort
Inheritance
System.Object
CurveItem.Comparer
Implements
System.Collections.Generic.IComparer<CurveItem>
Inherited Members
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: 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. |
System.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 |
---|---|
System.Int32 | -1, 0, or 1 depending on l.X's relation to r.X |
Implements
System.Collections.Generic.IComparer<T>