WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ComparerBase

    Show / Hide Table of Contents

    Class ComparerBase

    Base class for compare children indexes.

    Inheritance
    System.Object
    ComparerBase
    DockIndexComparer
    FloatIndexComparer
    SideTabChildComparer
    Implements
    System.Collections.IComparer
    System.Collections.Generic.IComparer<System.Windows.FrameworkElement>
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public abstract class ComparerBase : 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 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.

    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>
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved