Skip to main content

ColumnCreateOptions Class

Definition

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

Holds options for configuring a Avalonia.Controls.TreeDataGridColumn via the fluent API.

public class ColumnCreateOptions

Constructors

NameDescription
ColumnCreateOptionsNo summary available.

ColumnCreateOptions Constructor

public ColumnCreateOptions()

Properties

NameDescription
AllowTriStateSortingGets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header.
BeginEditGesturesGets or sets the gesture(s) that will cause a cell to enter edit mode.
CanUserResizeGets or sets a value indicating whether the user can resize a column by dragging.
CanUserSortColumnGets or sets a value indicating whether the user can sort a column by clicking.
CompareAscendingGets or sets a custom comparison for ascending ordered columns.
CompareDescendingGets or sets a custom comparison for descending ordered columns.
MaxWidthGets or sets the maximum width for a column.
MinWidthGets or sets the minimum width for a column.
WidthGets or sets the column width.

AllowTriStateSorting Property

Gets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header.

public Nullable<bool> AllowTriStateSorting { get; set; }

Remarks

Only applies if Avalonia.Controls.ColumnCreateOptions.CanUserSortColumn is true. If null, the owner Avalonia.Controls.TreeDataGrid.AllowTriStateSorting property value will apply.

BeginEditGestures Property

Gets or sets the gesture(s) that will cause a cell to enter edit mode.

public Avalonia.Controls.BeginEditGestures BeginEditGestures { get; set; }

CanUserResize Property

Gets or sets a value indicating whether the user can resize a column by dragging.

public Nullable<bool> CanUserResize { get; set; }

Remarks

If null, the owner Avalonia.Controls.TreeDataGrid.CanUserResizeColumns property value will apply.

CanUserSortColumn Property

Gets or sets a value indicating whether the user can sort a column by clicking.

public Nullable<bool> CanUserSortColumn { get; set; }

Remarks

If null, the owner Avalonia.Controls.TreeDataGrid.CanUserSortColumns property value will apply.

CompareAscending Property

Gets or sets a custom comparison for ascending ordered columns.

public Comparison<object> CompareAscending { get; set; }

CompareDescending Property

Gets or sets a custom comparison for descending ordered columns.

public Comparison<object> CompareDescending { get; set; }

MaxWidth Property

Gets or sets the maximum width for a column.

public Nullable<Avalonia.Controls.GridLength> MaxWidth { get; set; }

MinWidth Property

Gets or sets the minimum width for a column.

public Avalonia.Controls.GridLength MinWidth { get; set; }

Width Property

Gets or sets the column width.

public Nullable<Avalonia.Controls.GridLength> Width { get; set; }