Class ComparerBase
Base class for compare children indexes.
Implements
System.Collections.IComparer
System.Collections.Generic.IComparer<System.Windows.FrameworkElement>
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public abstract class ComparerBase : Object, IComparer, IComparer<FrameworkElement>
Constructors
ComparerBase()
Declaration
protected ComparerBase()
Methods
Compare(Object, Object)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public int 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 |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Neither |
Compare(FrameworkElement, FrameworkElement)
Compares the specified x element.
Declaration
public int Compare(FrameworkElement xElement, FrameworkElement yElement)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | xElement | The x element. |
System.Windows.FrameworkElement | yElement | The y element. |
Returns
Type | Description |
---|---|
System.Int32 | return result index. |
GetIndex(FrameworkElement)
Gets the index.
Declaration
protected abstract int GetIndex(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element | The element. |
Returns
Type | Description |
---|---|
System.Int32 | return index. |
ValidateElements(FrameworkElement, FrameworkElement)
Validates the elements.
Declaration
protected virtual void ValidateElements(FrameworkElement element1, FrameworkElement element2)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | element1 | The element1. |
System.Windows.FrameworkElement | element2 | The element2. |
Implements
System.Collections.IComparer
System.Collections.Generic.IComparer<T>