ColumnFormat
ConsoleMonster.Layout
How a widget lays out one of its stat columns (counts, percentages, values, details) across rows. Every row of a widget shares the column's width, so numbers line up; during a live session the width never shrinks, so columns do not jump when a value grows from 9 to 10 or drops back.
Inheritance
- object
- ColumnFormat
Remarks
The width of a column is the largest of: its widest current value, ColumnFormat.MinWidth, the width reserved by ColumnFormat.ReserveDigits (numeric columns), the width of a known maximum the widget supplies (a lane total, an overall total), and the widest width the column has used so far.
Usage
Explore 92 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 24
- Extension method ColumnFormat.Alignment
- Extension method ColumnFormat.AllowShrink
- Extension method ColumnFormat.MinWidth
- Extension method ColumnFormat.ReserveDigits
- Method ColumnFormatFluent.Alignment
- Method ColumnFormatFluent.AllowShrink
- Method ColumnFormatFluent.MinWidth
- Method ColumnFormatFluent.ReserveDigits
- Method Ui.ColumnFormat
- Property BarChart.ValueColumn
- Property ChartOptions.CountColumn
- Property ChartOptions.LabelColumn
- Property ChartOptions.PercentColumn
- Property ChartOptions.ValueColumn
- Property KeyValueList.NumberColumn
- Property Lanes.CountColumn
- Property Lanes.PercentColumn
- Property LogRegion.LevelColumn
- Property ProgressBar.CountColumn
- Property ProgressOptions.CountColumn
- Property StackedBar.CountColumn
- Property StackedBar.LabelColumn
- Property StackedBar.PercentColumn
- Property StatusList.DetailColumn
Accepted by parameters 68
- Extension method ColumnFormat.Alignment
- Extension method ColumnFormat.AllowShrink
- Extension method ColumnFormat.MinWidth
- Extension method ColumnFormat.ReserveDigits
- Method ColumnFormatFluent.Alignment
- Method ColumnFormatFluent.AllowShrink
- Method ColumnFormatFluent.MinWidth
- Method ColumnFormatFluent.ReserveDigits
- Extension method BarChart.ValueColumn
- Extension method BarChart.ValueColumn
- Method BarChartFluent.ValueColumn
- Method BarChartFluent.ValueColumn
- Extension method ChartOptions.CountColumn
- Extension method ChartOptions.CountColumn
- Extension method ChartOptions.LabelColumn
- Extension method ChartOptions.LabelColumn
- Extension method ChartOptions.PercentColumn
- Extension method ChartOptions.PercentColumn
- Extension method ChartOptions.ValueColumn
- Extension method ChartOptions.ValueColumn
- Method ChartOptionsFluent.CountColumn
- Method ChartOptionsFluent.CountColumn
- Method ChartOptionsFluent.LabelColumn
- Method ChartOptionsFluent.LabelColumn
- Method ChartOptionsFluent.PercentColumn
- Method ChartOptionsFluent.PercentColumn
- Method ChartOptionsFluent.ValueColumn
- Method ChartOptionsFluent.ValueColumn
- Extension method KeyValueList.NumberColumn
- Extension method KeyValueList.NumberColumn
- Method KeyValueListFluent.NumberColumn
- Method KeyValueListFluent.NumberColumn
- Extension method Lanes.CountColumn
- Extension method Lanes.CountColumn
- Extension method Lanes.PercentColumn
- Extension method Lanes.PercentColumn
- Method LanesFluent.CountColumn
- Method LanesFluent.CountColumn
- Method LanesFluent.PercentColumn
- Method LanesFluent.PercentColumn
- Extension method LogRegion.LevelColumn
- Extension method LogRegion.LevelColumn
- Method LogRegionFluent.LevelColumn
- Method LogRegionFluent.LevelColumn
- Extension method ProgressBar.CountColumn
- Extension method ProgressBar.CountColumn
- Method ProgressBarFluent.CountColumn
- Method ProgressBarFluent.CountColumn
- Extension method ProgressOptions.CountColumn
- Extension method ProgressOptions.CountColumn
- Method ProgressOptionsFluent.CountColumn
- Method ProgressOptionsFluent.CountColumn
- Extension method StackedBar.CountColumn
- Extension method StackedBar.CountColumn
- Extension method StackedBar.LabelColumn
- Extension method StackedBar.LabelColumn
- Extension method StackedBar.PercentColumn
- Extension method StackedBar.PercentColumn
- Method StackedBarFluent.CountColumn
- Method StackedBarFluent.CountColumn
- Method StackedBarFluent.LabelColumn
- Method StackedBarFluent.LabelColumn
- Method StackedBarFluent.PercentColumn
- Method StackedBarFluent.PercentColumn
- Extension method StatusList.DetailColumn
- Extension method StatusList.DetailColumn
- Method StatusListFluent.DetailColumn
- Method StatusListFluent.DetailColumn
Constructors
public ColumnFormat(HorizontalAlignment alignment = Right, int minWidth = 0, int reserveDigits = 0) #Creates a column format.
Parameters
- alignment ConsoleMonster.Layout.HorizontalAlignment = Right
- Alignment of values inside the column.
- minWidth int = 0
- Minimum width in cells.
- reserveDigits int = 0
- Digits reserved for numeric values (0 = only what the widget knows or has seen).
Inherited Methods
Properties
public HorizontalAlignment Alignment { get; set; } #Alignment of values inside the column; numbers default to right.
public int ReserveDigits { get; set; } #Digits reserved for numeric values, for example 4 to keep room for 9999 from the first frame. Zero (the default) reserves only what the widget knows (its totals) or has already displayed.
public bool AllowShrink { get; set; } #When true, the column follows its current values and may shrink; defaults to false.
Extension Methods
public static ColumnFormat Alignment(ColumnFormat columnFormat, HorizontalAlignment value) #Sets ColumnFormat.Alignment: Alignment of values inside the column; numbers default to right.
Parameters
- columnFormat ConsoleMonster.Layout.ColumnFormat
- The instance.
- value ConsoleMonster.Layout.HorizontalAlignment
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.ColumnFormat { Alignment = value }; Ui.ColumnFormat().Alignment(value);public static ColumnFormat AllowShrink(ColumnFormat columnFormat, bool value = true) #Sets ColumnFormat.AllowShrink: When true, the column follows its current values and may shrink; defaults to false.
Parameters
- columnFormat ConsoleMonster.Layout.ColumnFormat
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.ColumnFormat { AllowShrink = value }; Ui.ColumnFormat().AllowShrink(value);public static ColumnFormat MinWidth(ColumnFormat columnFormat, int value) #Sets ColumnFormat.MinWidth: Minimum width in cells (never negative).
Parameters
- columnFormat ConsoleMonster.Layout.ColumnFormat
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.ColumnFormat { MinWidth = value }; Ui.ColumnFormat().MinWidth(value);public static ColumnFormat ReserveDigits(ColumnFormat columnFormat, int value) #Sets ColumnFormat.ReserveDigits: Digits reserved for numeric values, for example 4 to keep room for 9999 from the first frame. Zero (the default) reserves only what the widget knows (its totals) or has already displayed.
Parameters
- columnFormat ConsoleMonster.Layout.ColumnFormat
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Layout.ColumnFormat { ReserveDigits = value }; Ui.ColumnFormat().ReserveDigits(value);