Skip to main content

TreeDataGridColumn Class

Definition

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

Base class for columns in a Avalonia.Controls.TreeDataGrid.

public class TreeDataGridColumn

Properties

NameDescription
ActualWidthGets the actual width of the column after measurement.
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 the column by dragging.
CanUserSortColumnGets or sets a value indicating whether the user can sort the column by clicking.
CompareAscendingGets or sets a custom comparison for ascending sort order.
CompareDescendingGets or sets a custom comparison for descending sort order.
HeaderGets or sets the column header.
IsVisibleGets or sets a value indicating whether the column is visible.
MaxWidthGets or sets the maximum width for the column.
MinWidthGets or sets the minimum width for the column.
SortDirectionGets or sets the sort direction indicator that will be displayed on the column.
TagGets or sets a user-defined object attached to the column.
WidthGets or sets the width of the column.

ActualWidth Property

Gets the actual width of the column after measurement.

public double ActualWidth { get; set; }

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.TreeDataGridColumn.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 the 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 the 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 sort order.

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

CompareDescending Property

Gets or sets a custom comparison for descending sort order.

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

Header Property

Gets or sets the column header.

public object Header { get; set; }

IsVisible Property

Gets or sets a value indicating whether the column is visible.

public bool IsVisible { get; set; }

Remarks

When set to false, the column header and cells will not be rendered and the column will not contribute to layout calculations.

MaxWidth Property

Gets or sets the maximum width for the column.

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

MinWidth Property

Gets or sets the minimum width for the column.

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

SortDirection Property

Gets or sets the sort direction indicator that will be displayed on the column.

public Nullable<System.ComponentModel.ListSortDirection> SortDirection { get; set; }

Remarks

Note that changing this property does not change the sorting of the data, it is only used to display a sort direction indicator. To sort data according to a column use Avalonia.Controls.TreeDataGridSource.SortBy(Avalonia.Controls.TreeDataGridColumn,System.ComponentModel.ListSortDirection).

Tag Property

Gets or sets a user-defined object attached to the column.

public object Tag { get; set; }

Width Property

Gets or sets the width of the column.

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

Fields

ActualWidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.ActualWidth property.

public Avalonia.DirectProperty<Avalonia.Controls.TreeDataGridColumn, double> ActualWidthProperty

AllowTriStateSortingProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.AllowTriStateSorting property.

public Avalonia.StyledProperty<Nullable<bool>> AllowTriStateSortingProperty

BeginEditGesturesProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.BeginEditGestures property.

public Avalonia.StyledProperty<Avalonia.Controls.BeginEditGestures> BeginEditGesturesProperty

CanUserResizeProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CanUserResize property.

public Avalonia.StyledProperty<Nullable<bool>> CanUserResizeProperty

CanUserSortColumnProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CanUserSortColumn property.

public Avalonia.StyledProperty<Nullable<bool>> CanUserSortColumnProperty

CompareAscendingProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CompareAscending property.

public Avalonia.StyledProperty<Comparison<object>> CompareAscendingProperty

CompareDescendingProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.CompareDescending property.

public Avalonia.StyledProperty<Comparison<object>> CompareDescendingProperty

HeaderProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.Header property.

public Avalonia.StyledProperty<object> HeaderProperty

IsVisibleProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.IsVisible property.

public Avalonia.StyledProperty<bool> IsVisibleProperty

MaxWidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.MaxWidth property.

public Avalonia.StyledProperty<Nullable<Avalonia.Controls.GridLength>> MaxWidthProperty

MinWidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.MinWidth property.

public Avalonia.StyledProperty<Avalonia.Controls.GridLength> MinWidthProperty

SortDirectionProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.SortDirection property.

public Avalonia.StyledProperty<Nullable<System.ComponentModel.ListSortDirection>> SortDirectionProperty

TagProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.Tag property.

public Avalonia.StyledProperty<object> TagProperty

WidthProperty Field

Defines the Avalonia.Controls.TreeDataGridColumn.Width property.

public Avalonia.StyledProperty<Avalonia.Controls.GridLength> WidthProperty