Skip to main content

TreeDataGridRowHeaderCell Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

A control in a Avalonia.Controls.TreeDataGrid that displays row header cells.

public class TreeDataGridRowHeaderCell

Inheritance: TemplatedControl -> TreeDataGridCell -> 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

NameDescription
TreeDataGridRowHeaderCellNo summary available.

TreeDataGridRowHeaderCell Constructor

public TreeDataGridRowHeaderCell()

Properties

NameDescription
TextAlignmentGets or sets the text alignment for the cell's text.
ValueGets or sets the text value displayed in the cell.
ColumnIndexGets the index of the column that this cell belongs to. Inherited from TreeDataGridCell.
IsEditingGets a value indicating whether the cell is in edit mode. Inherited from TreeDataGridCell.
IsEffectivelySelectedGets a value indicating whether the cell is effectively selected, either directly or because its containing row is selected. Inherited from TreeDataGridCell.
IsSelectedGets a value indicating whether the cell is selected. Inherited from TreeDataGridCell.
ModelGets the data model for the cell. Inherited from TreeDataGridCell.
RowIndexGets 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

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