TreeDataGridRowHeaderCell Class
Definition
A control in a Avalonia.Controls.TreeDataGrid that displays row header cells.
public class TreeDataGridRowHeaderCell
Remarks
TreeDataGridRowHeaderCell displays the visual row number (0, 1, 2...) in a TreeDataGrid. The number always represents the visual position of the row, remaining sequential regardless of sorting or whether the data source is flat or hierarchical.
This cell type is read-only and does not support editing.
Constructors
| Name | Description |
|---|---|
| TreeDataGridRowHeaderCell | No summary available. |
TreeDataGridRowHeaderCell Constructor
public TreeDataGridRowHeaderCell()
Properties
| Name | Description |
|---|---|
| TextAlignment | Gets or sets the text alignment for the cell's text. |
| Value | Gets or sets the text value displayed in the cell. |
| ColumnIndex | Gets the index of the column that this cell belongs to. Inherited from TreeDataGridCell. |
| IsEditing | Gets a value indicating whether the cell is in edit mode. Inherited from TreeDataGridCell. |
| IsEffectivelySelected | Gets a value indicating whether the cell is effectively selected, either directly or because its containing row is selected. Inherited from TreeDataGridCell. |
| IsSelected | Gets a value indicating whether the cell is selected. Inherited from TreeDataGridCell. |
| Model | Gets the data model for the cell. Inherited from TreeDataGridCell. |
| RowIndex | Gets the index of the row that this cell belongs to. Inherited from TreeDataGridCell. |
TextAlignment Property
Gets or sets the text alignment for the cell's text.
public Avalonia.Media.TextAlignment TextAlignment { get; set; }
Value
The text alignment to apply to the cell's text. The default is Avalonia.Media.TextAlignment.Right.
Value Property
Gets or sets the text value displayed in the cell.
public string Value { get; set; }
Remarks
This value represents the visual row number as a string.
Fields
| Name | Description |
|---|---|
| TextAlignmentProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridRowHeaderCell.TextAlignment property. |
| ValueProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridRowHeaderCell.Value property. |
| IsSelectedProperty | Defines the Avalonia.Controls.Primitives.TreeDataGridCell.IsSelected property. Inherited from TreeDataGridCell. |
TextAlignmentProperty Field
Defines the Avalonia.Controls.Primitives.TreeDataGridRowHeaderCell.TextAlignment property.
public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridRowHeaderCell, Avalonia.Media.TextAlignment> TextAlignmentProperty
ValueProperty Field
Defines the Avalonia.Controls.Primitives.TreeDataGridRowHeaderCell.Value property.
public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridRowHeaderCell, string> ValueProperty