Search Results for

    Show / Hide Table of Contents

    Class CurveItem.Comparer

    Compares CurveItem's based on the point value at the specified index and for the specified axis. Sort()

    Inheritance
    Object
    CurveItem.Comparer
    Implements
    IComparer<CurveItem>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: ZedGraph
    Assembly: ZedGraph.dll
    Syntax
    public class Comparer : IComparer<CurveItem>

    Constructors

    | Improve this Doc View Source

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

    Compare(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

    Implements

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