CheckBoxColumn(Object?, Expression<Func<TModel, Nullable>>, Action<TModel, Nullable>?, Nullable, CheckBoxColumnOptions?) Constructor

Definition

Assembly Avalonia.Controls.TreeDataGrid.dll

Initializes a new instance of the CheckBoxColumn<TModel> class that displays a three-state check box.

public CheckBoxColumn(object? header, Expression<Func<TModel, bool?>> getter, Action<TModel, bool?>? setter = null, GridLength? width = default(GridLength? ), CheckBoxColumnOptions<TModel>? options = null)

Parameters

header
Object

The column header.

getter
Expression<Func<TModel, Nullable<Boolean>>>

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

setter
Action<TModel, Nullable<Boolean>>

A method which given a row model and a cell value, writes the cell value to the row model. If not supplied then the column will be read-only.

width
Nullable<GridLength>

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

options
CheckBoxColumnOptions<TModel>

Additional column options.