Class TreeGridIndexResolver
Represents an extension class that provides an set of index resolver helper methods in SfTreeGrid.
Inheritance
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public static class TreeGridIndexResolver : Object
Methods
GetHeaderIndex(SfTreeGrid)
Gets the header index of SfTreeGrid.
Declaration
public static int GetHeaderIndex(this SfTreeGrid treeGrid)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the header index of the SfTreeGrid. |
GetNodeAtRowIndex(SfTreeGrid, Int32)
Gets the node at the specified row index.
Declaration
public static TreeNode GetNodeAtRowIndex(this SfTreeGrid treeGrid, int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
System.Int32 | rowIndex | The specified row index. |
Returns
Type |
---|
TreeNode |
ResolveToGridVisibleColumnIndex(SfTreeGrid, Int32)
Resolves the visible column index for the specified column index in SfTreeGrid.
Declaration
public static int ResolveToGridVisibleColumnIndex(this SfTreeGrid treeGrid, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
System.Int32 | columnIndex | The visibleColumnIndex. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the corresponding visible column index for the specified column index. |
ResolveToNodeIndex(SfTreeGrid, Int32)
Resolves the node index corresponding to the specified row index.
Declaration
public static int ResolveToNodeIndex(this SfTreeGrid treeGrid, int rowindex)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
System.Int32 | rowindex | The corresponding row index. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the node index of the specified row index. |
ResolveToRowIndex(SfTreeGrid, TreeNode)
Resolves the row index corresponding to the specified Treenode.
Declaration
public static int ResolveToRowIndex(this SfTreeGrid treeGrid, TreeNode node)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
TreeNode | node | Specifies the Tree node to get its corresponding row index. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the row index of the specified Tree node. |
ResolveToRowIndex(SfTreeGrid, Int32)
Resolves the row index corresponding to the specified node index in SfTreeGrid.
Declaration
public static int ResolveToRowIndex(this SfTreeGrid treeGrid, int nodeIndex)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
System.Int32 | nodeIndex | Specifies node index to get its corresponding row index. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the row index of the specified node index in SfTreeGrid. |
ResolveToRowIndex(SfTreeGrid, Object)
Resolves the row index corresponding to the specified data.
Declaration
public static int ResolveToRowIndex(this SfTreeGrid treeGrid, object data)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
System.Object | data | Specifies the data to get its corresponding row index. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the row index of the specified data. |
ResolveToScrollColumnIndex(SfTreeGrid, Int32)
Resolves the scroll column index for the specified column index in SfTreeGrid.
Declaration
public static int ResolveToScrollColumnIndex(this SfTreeGrid treeGrid, int gridColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
System.Int32 | gridColumnIndex | The corresponding column index to get the scroll column index. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the scroll column index for the specified column index. |
ResolveToStartColumnIndex(SfTreeGrid)
Resolves the start column index of the SfTreeGrid.
Declaration
public static int ResolveToStartColumnIndex(this SfTreeGrid treeGrid)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | treeGrid | The SfTreeGrid. |
Returns
Type | Description |
---|---|
System.Int32 | Returns the start column index of the SfTreeGrid. |