Class TreeGridRowInfo
Represents information about a row in the TreeGrid, including its data item and index.
Implements
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridRowInfo : IEquatable<TreeGridRowInfo>
Constructors
TreeGridRowInfo()
Initializes a new instance of the TreeGridRowInfo class.
Declaration
public TreeGridRowInfo()
TreeGridRowInfo(int, object?)
Initializes a new instance of the TreeGridRowInfo class with the specified row index and row data.
Declaration
public TreeGridRowInfo(int rowIndex, object? rowData)
Parameters
| Type | Name | Description |
|---|---|---|
| int | rowIndex | The index of the row. |
| object | rowData | The data item of the row. |
TreeGridRowInfo(int, object?, TreeNode?, bool)
Initializes a new instance of the TreeGridRowInfo class with the specified parameters.
Declaration
public TreeGridRowInfo(int rowIndex, object? rowData, TreeNode? treeNode, bool isSelected)
Parameters
| Type | Name | Description |
|---|---|---|
| int | rowIndex | The index of the row. |
| object | rowData | The data item of the row. |
| TreeNode | treeNode | The tree node associated with this row. |
| bool | isSelected | A value indicating whether the row is selected. |
Properties
IsSelected
Gets or sets a value indicating whether the row is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
| Type |
|---|
| bool |
RowData
Gets or sets the data item of the row.
Declaration
public object? RowData { get; set; }
Property Value
| Type |
|---|
| object |
RowIndex
Gets or sets the index of the row in the display.
Declaration
public int RowIndex { get; set; }
Property Value
| Type |
|---|
| int |
TreeNode
Gets or sets the tree node associated with this row.
Declaration
public TreeNode? TreeNode { get; set; }
Property Value
| Type |
|---|
| TreeNode |
Methods
Equals(TreeGridRowInfo?)
Returns a boolean indicating if the passed TreeGridRowInfo object is Equal to this. Equality is defined as object equality for reference types and bitwise equality for value types using a loader trick to replace Equals with EqualsValue for value types.
Declaration
public bool Equals(TreeGridRowInfo? other)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeGridRowInfo | other |
Returns
| Type |
|---|
| bool |
Exceptions
| Type | Condition |
|---|---|
| NotImplementedException |
GetHashCode()
GetHashCode is intended to serve as a hash function for this object. Based on the contents of the object, the hash function will return a suitable value with a relatively random distribution over the various inputs.
The default implementation returns the [....] block index for this instance. Calling it on the same object multiple times will return the same value, so it will technically meet the needs of a hash function, but it's less than ideal. Objects (especially value classes) should override this method.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Return a suitable value with a relatively random distribution over the various inputs based on the contents of the object. |