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.
CanUserSortGets 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.
HorizontalContentAlignmentGets or sets the horizontal alignment of the cell content.
MaxWidthGets or sets the maximum width for a column.
MinWidthGets or sets the minimum width for a column.
VerticalContentAlignmentGets or sets the vertical alignment of the cell content.
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.CanUserSort 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.

CanUserSort Property​

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

public Nullable<bool> CanUserSort { 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; }

HorizontalContentAlignment Property​

Gets or sets the horizontal alignment of the cell content.

public Avalonia.Layout.HorizontalAlignment HorizontalContentAlignment { 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; }

VerticalContentAlignment Property​

Gets or sets the vertical alignment of the cell content.

public Avalonia.Layout.VerticalAlignment VerticalContentAlignment { get; set; }

Width Property​

Gets or sets the column width.

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