Class ComparerPointWithIndexByX
Provides the method to compare the ChartPointWithIndex by the X value.
Inheritance
System.Object
ComparerPointWithIndexByX
Implements
System.Collections.IComparer
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: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ComparerPointWithIndexByX : IComparer
Constructors
ComparerPointWithIndexByX()
Initializes a new instance of the ComparerPointWithIndexByX class.
Declaration
public ComparerPointWithIndexByX()
Explicit Interface Implementations
IComparer.Compare(Object, Object)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
int IComparer.Compare(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
System.Object | x | The first object to compare. |
System.Object | y | The second object to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Neither x nor y implements the System.IComparable interface.-or- x and y are of different types and neither one can handle comparisons with the other. |
Implements
System.Collections.IComparer