menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class IndexComparer - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class IndexComparer

    Represents a class that provides the implementation of IndexComparer in SfTreeGrid.

    Inheritance
    System.Object
    IndexComparer
    Implements
    System.Collections.Generic.IComparer<TreeNode>
    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.UI.Xaml.TreeGrid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class IndexComparer : IComparer<TreeNode>

    Constructors

    IndexComparer(TreeGridView)

    Initializes a new instance of IndexComparer class.

    Declaration
    public IndexComparer(TreeGridView treeGridView)
    Parameters
    Type Name Description
    TreeGridView treeGridView

    The TreeGridView.

    Methods

    Compare(TreeNode, TreeNode)

    Performs a case-sensitive comparison of two specified TreeNodes and returns a value indicating whether one is less than, equal to, or greater than the other.

    Declaration
    public int Compare(TreeNode x, TreeNode y)
    Parameters
    Type Name Description
    TreeNode x

    The first TreeNode.

    TreeNode y

    The Second TreeNode.

    Returns
    Type Description
    System.Int32

    A signed integer less than zero if first TreeNode is less than second TreeNode or zero if both are equal or greater than zero if first TreeNode greater than second TreeNode.

    Implements

    System.Collections.Generic.IComparer<T>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved