Search Results for

    Show / Hide Table of Contents

    Class PointPair.PointPairComparer

    Compares points based on their x values. Is setup to be used in an ascending order sort. System.Collections.ArrayList.Sort

    Inheritance
    System.Object
    PointPair.PointPairComparer
    Implements
    System.Collections.Generic.IComparer<PointPair>
    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 PointPairComparer : IComparer<PointPair>

    Constructors

    | Improve this Doc View Source

    PointPairComparer(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 Source

    Compare(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
    System.Int32

    -1, 0, or 1 depending on l.X's relation to r.X

    Implements

    System.Collections.Generic.IComparer<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX