Class ColumnStyle | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Inheritance
ColumnStyle
Inherited Members
Fields
Defines a delegate for returning custom alignment per cell based on cell values. When specified this will override Alignment
Defines a delegate for returning a custom color scheme per cell based on cell values. Return null for the default
Defines a delegate for returning custom representations of cell values. If not set thenToString() is used. Return values from your delegate may be truncated e.g. based onMaxWidth
Properties
Defines the default alignment for all values rendered in this column. For custom alignment based on cell contents use AlignmentGetter.
Defines the format for values e.g. "yyyy-MM-dd" for dates
Set the maximum width of the column in characters. This value will be ignored if more than the tablesMaxCellWidth. Defaults to DefaultMaxCellWidth
Enables flexible sizing of this column based on available screen space to render into.
Set the minimum width of the column in characters. Setting this will ensure that even when a column has short content/header it still fills a given width of the control.
This value will be ignored if more than the tables MaxCellWidth or theMaxWidth
For setting a flexible column width (down to a lower limit) use MinAcceptableWidth instead
Gets or Sets a value indicating whether the column should be visible to the user. This affects both whether it is rendered and whether it can be selected. Defaults to true.
Methods
Returns the alignment for the cell based on cellValue
and AlignmentGetter/Alignment
Returns the full string to render (which may be truncated if too long) that the current style says best represents the given value