ColumnBase(Object?, Expression<Func<TModel, TValue?>>, Action<TModel, TValue?>?, Nullable, ColumnOptions) Constructor

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

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

public ColumnBase(object? header, Expression<Func<TModel, TValue?>> getter, Action<TModel, TValue?>? setter, GridLength? width, ColumnOptions<TModel> options)

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. If null, the column will be read-only.

width
Nullable<GridLength>

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

options
ColumnOptions<TModel>

Additional column options.