Class TreeGridQueryRowHeightEventArgs
Provides data for the QueryRowHeight event.
Inherited Members
Namespace: Syncfusion.Maui.TreeGrid
Assembly: Syncfusion.Maui.TreeGrid.dll
Syntax
public class TreeGridQueryRowHeightEventArgs : HandledEventArgs
Constructors
TreeGridQueryRowHeightEventArgs(int, double, object)
Initializes a new instance of the TreeGridQueryRowHeightEventArgs class using the specified row index and height.
Declaration
public TreeGridQueryRowHeightEventArgs(int rowIndex, double height, object originalSource)
Parameters
| Type | Name | Description |
|---|---|---|
| int | rowIndex | The index of the row for which the height is queried. |
| double | height | The queried height of the row. |
| object | originalSource |
Properties
Height
Gets or sets the height of the row being queried.
Declaration
public double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| double | The height of the row. |
RowIndex
Gets the index of the row for which the height is queried.
Declaration
public int RowIndex { get; }
Property Value
| Type | Description |
|---|---|
| int | The index of the row. |
Methods
GetIntrinsicRowHeight(int, bool, List<string>?)
Gets the row height to fit that row based on the content.
Declaration
public double GetIntrinsicRowHeight(int rowIndex, bool canIncludeHiddenColumns = false, List<string>? excludedColumns = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | rowIndex | The collection of new added columns in sorting. |
| bool | canIncludeHiddenColumns | It considers the hidden columns also in auto size calculation. |
| List<string> | excludedColumns | The collection of column names which should be excluded for auto-fit calculation. Typically the column names are DataGridColumn.MappingName. |
Returns
| Type |
|---|
| double |