Skip to main content

TextColumnCreateOptions Class

Definition​

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

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

public class TextColumnCreateOptions

Inheritance: object -> ColumnCreateOptions -> TextColumnCreateOptions

Constructors​

NameDescription
TextColumnCreateOptionsNo summary available.

TextColumnCreateOptions Constructor​

public TextColumnCreateOptions()

Properties​

NameDescription
AllowTriStateSortingGets or sets whether the user can cycle through ascending, descending, and unsorted states when clicking the column header. Inherited from ColumnCreateOptions.
BeginEditGesturesGets or sets the gesture(s) that will cause a cell to enter edit mode. Inherited from ColumnCreateOptions.
CanUserResizeGets or sets a value indicating whether the user can resize a column by dragging. Inherited from ColumnCreateOptions.
CanUserSortGets or sets a value indicating whether the user can sort a column by clicking. Inherited from ColumnCreateOptions.
CompareAscendingGets or sets a custom comparison for ascending ordered columns. Inherited from ColumnCreateOptions.
CompareDescendingGets or sets a custom comparison for descending ordered columns. Inherited from ColumnCreateOptions.
CultureCulture info used in conjunction with Avalonia.Controls.TextColumnCreateOptions.StringFormat
HorizontalContentAlignmentGets or sets the horizontal alignment of the cell content. Inherited from ColumnCreateOptions.
IsReadOnlyGets or sets whether the column is read-only.
IsTextSearchEnabledGets or sets a value indicating whether the column takes part in text searches.
MaxWidthGets or sets the maximum width for a column. Inherited from ColumnCreateOptions.
MinWidthGets or sets the minimum width for a column. Inherited from ColumnCreateOptions.
StringFormatGets or sets the format string for the cells in the column.
TextAlignmentGets or sets the text alignment mode for the cells in the column.
TextTrimmingGets or sets the text trimming mode for the cells in the column.
TextWrappingGets or sets the text wrapping mode for the cells in the column.
UseDrawnCellsGets or sets a value indicating whether the column uses drawn cells instead of control-based cells for improved performance.
VerticalContentAlignmentGets or sets the vertical alignment of the cell content. Inherited from ColumnCreateOptions.
WidthGets or sets the column width. Inherited from ColumnCreateOptions.

Culture Property​

Culture info used in conjunction with Avalonia.Controls.TextColumnCreateOptions.StringFormat

public System.Globalization.CultureInfo Culture { get; set; }

IsReadOnly Property​

Gets or sets whether the column is read-only.

public bool IsReadOnly { get; set; }

Remarks​

A column whose expression resolves to a non-writable property (for example a get-only or init-only property) is always read-only, regardless of the value of this property.

IsTextSearchEnabled Property​

Gets or sets a value indicating whether the column takes part in text searches.

public bool IsTextSearchEnabled { get; set; }

StringFormat Property​

Gets or sets the format string for the cells in the column.

public string StringFormat { get; set; }

TextAlignment Property​

Gets or sets the text alignment mode for the cells in the column.

public Avalonia.Media.TextAlignment TextAlignment { get; set; }

TextTrimming Property​

Gets or sets the text trimming mode for the cells in the column.

public Avalonia.Media.TextTrimming TextTrimming { get; set; }

TextWrapping Property​

Gets or sets the text wrapping mode for the cells in the column.

public Avalonia.Media.TextWrapping TextWrapping { get; set; }

UseDrawnCells Property​

Gets or sets a value indicating whether the column uses drawn cells instead of control-based cells for improved performance.

public bool UseDrawnCells { get; set; }