Class SelectColumn
Immutable column definition for a multi-column select (see
InlineMultiColumnSelect and
TigerTui.MultiColumnSelectIndexAsync). A column owns sizing and a default cell alignment/style;
the control maps each column onto a real CliGrid column, and CliGrid owns the actual
width resolution. Use Star on the column that should absorb the
remaining width so a selected row's highlight spans the whole list.public sealed class SelectColumn
- Inheritance
-
SelectColumn
- Inherited Members
Constructors
SelectColumn(CliColumnSizing, CliTextAlignment, int?, int?, int?, ThemeStyle?)
Creates a column. A fixed
width is mutually exclusive with
Star sizing. Leave style null to fall back to the
per-cell style, then to Text.public SelectColumn(CliColumnSizing sizing = CliColumnSizing.Auto, CliTextAlignment alignment = CliTextAlignment.Left, int? width = null, int? minWidth = null, int? maxWidth = null, ThemeStyle? style = null)
Parameters
sizingCliColumnSizingalignmentCliTextAlignmentwidthint?minWidthint?maxWidthint?styleThemeStyle?
Properties
Alignment
Default horizontal alignment for cells in this column (a cell may override it).
public CliTextAlignment Alignment { get; }
Property Value
MaxWidth
Optional maximum resolved width for the column (long content truncates to it).
public int? MaxWidth { get; }
Property Value
- int?
MinWidth
Optional minimum resolved width for the column.
public int? MinWidth { get; }
Property Value
- int?
Sizing
How the column is sized after content sizing (Star absorbs the remainder).
public CliColumnSizing Sizing { get; }
Property Value
Style
Optional default theme style for cells in this column, applied to non-selected, non-disabled cells
that do not declare their own Style. A selected row overrides this with the
list-selection style so the whole row highlights consistently.
public ThemeStyle? Style { get; }
Property Value
Width
Fixed column width in cells, or
null for content/star sizing.public int? Width { get; }
Property Value
- int?