TextColumn(Object?, Expression<Func<TModel, TValue?>>, Action<TModel, TValue?>, Nullable, TextColumnOptions?) Constructor

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Initializes a new instance of the TextColumn<TModel, TValue> class.

public TextColumn(object? header, Expression<Func<TModel, TValue?>> getter, Action<TModel, TValue?> setter, GridLength? width = default(GridLength? ), TextColumnOptions<TModel>? options = null)

Parameters

header
Object

The column header.

getter
Expression<Func<TModel, TValue>>

An expression which given a row model, returns a cell value for the column.

setter
Action<TModel, TValue>

A method which given a row model and a cell value, writes the cell value to the row model.

width
Nullable<GridLength>

The column width. If null defaults to Avalonia.Controls.GridLength.Auto.

options
TextColumnOptions<TModel>

Additional column options.