Class IndexComparer
Represents a class that provides the implementation of IndexComparer in SfTreeGrid.
Inheritance
System.Object
IndexComparer
Implements
System.Collections.Generic.IComparer<TreeNode>
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class IndexComparer : Object, 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<>