Skip to main content

TreeDataGridTextCell Class

Definition

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

A control in a Avalonia.Controls.TreeDataGrid that displays cells as text.

public class TreeDataGridTextCell

Inheritance: TemplatedControl -> TreeDataGridCell -> TreeDataGridTextCell

Remarks

TreeDataGridTextCell is used for displaying and editing text values in a TreeDataGrid.

This cell type provides properties to control text appearance, such as text trimming, wrapping, and alignment. When in edit mode, it displays a Avalonia.Controls.TextBox that allows the user to modify the text value.

Constructors

NameDescription
TreeDataGridTextCellNo summary available.

TreeDataGridTextCell Constructor

public TreeDataGridTextCell()

Properties

NameDescription
TextAlignmentGets or sets the text alignment for the cell's text.
TextTrimmingGets or sets the text trimming mode for the cell's text.
TextWrappingGets or sets the text wrapping mode 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; }

TextTrimming Property

Gets or sets the text trimming mode for the cell's text.

public Avalonia.Media.TextTrimming TextTrimming { get; set; }

TextWrapping Property

Gets or sets the text wrapping mode for the cell's text.

public Avalonia.Media.TextWrapping TextWrapping { get; set; }

Value Property

Gets or sets the text value displayed in the cell.

public string Value { get; set; }

Fields

TextAlignmentProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTextCell.TextAlignment property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTextCell, Avalonia.Media.TextAlignment> TextAlignmentProperty

TextTrimmingProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTextCell.TextTrimming property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTextCell, Avalonia.Media.TextTrimming> TextTrimmingProperty

TextWrappingProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTextCell.TextWrapping property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTextCell, Avalonia.Media.TextWrapping> TextWrappingProperty

ValueProperty Field

Defines the Avalonia.Controls.Primitives.TreeDataGridTextCell.Value property.

public Avalonia.DirectProperty<Avalonia.Controls.Primitives.TreeDataGridTextCell, string> ValueProperty