Class PointPair.PointPairComparer
Compares points based on their x values. Is setup to be used in an ascending order sort. Sort()
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
public class PointPairComparer : IComparer<PointPair>
Constructors
| Improve this Doc View SourcePointPairComparer(SortType)
Constructor for PointPairComparer.
Declaration
public PointPairComparer(SortType type)
Parameters
Type | Name | Description |
---|---|---|
SortType | type | The axis type on which to sort. |
Methods
| Improve this Doc View SourceCompare(PointPair, PointPair)
Compares two PointPairs.
Declaration
public int Compare(PointPair l, PointPair r)
Parameters
Type | Name | Description |
---|---|---|
PointPair | l | Point to the left. |
PointPair | r | Point to the right. |
Returns
Type | Description |
---|---|
Int32 | -1, 0, or 1 depending on l.X's relation to r.X |