Class Selection
Selection cyclic renderer
Inheritance
Implements
Namespace: Terminaux.Writer.CyclicWriters
Assembly: Terminaux.dll
Syntax
public class Selection : IStaticRenderable
Constructors
| Edit this page View SourceSelection()
Makes a new selection instance
Declaration
public Selection()
Selection(InputChoiceCategoryInfo[])
Makes a new selection instance
Declaration
public Selection(InputChoiceCategoryInfo[] categories)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceCategoryInfo[] | categories | Categories |
Selection(InputChoiceGroupInfo[])
Makes a new selection instance
Declaration
public Selection(InputChoiceGroupInfo[] groups)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceGroupInfo[] | groups | Groups |
Selection(InputChoiceInfo[])
Makes a new selection instance
Declaration
public Selection(InputChoiceInfo[] choices)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceInfo[] | choices | Choices |
Properties
| Edit this page View SourceAltBackgroundColor
Alternative option background color
Declaration
public Color AltBackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
AltChoicePos
Alternative choice position (one-based)
Declaration
public int AltChoicePos { get; set; }
Property Value
Type | Description |
---|---|
int |
AltForegroundColor
Alternative option foreground color
Declaration
public Color AltForegroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
AltSelectedBackgroundColor
Selected alternative option background color
Declaration
public Color AltSelectedBackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
AltSelectedForegroundColor
Selected alternative option foreground color
Declaration
public Color AltSelectedForegroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
BackgroundColor
Option background color
Declaration
public Color BackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
CurrentSelection
Current selection (zero-based)
Declaration
public int CurrentSelection { get; set; }
Property Value
Type | Description |
---|---|
int |
CurrentSelections
Current selections (null for single selection)
Declaration
public int[]? CurrentSelections { get; set; }
Property Value
Type | Description |
---|---|
int[] |
DisabledBackgroundColor
Disabled option background color
Declaration
public Color DisabledBackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
DisabledForegroundColor
Disabled option foreground color
Declaration
public Color DisabledForegroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
ForegroundColor
Option foreground color
Declaration
public Color ForegroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
Height
Selection height
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int |
Left
Left position
Declaration
public int Left { get; set; }
Property Value
Type | Description |
---|---|
int |
SelectedBackgroundColor
Selected option background color
Declaration
public Color SelectedBackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
SelectedForegroundColor
Selected option foreground color
Declaration
public Color SelectedForegroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
Selections
List of selection categories
Declaration
public InputChoiceCategoryInfo[] Selections { get; set; }
Property Value
Type | Description |
---|---|
InputChoiceCategoryInfo[] |
Settings
Selection style settings
Declaration
public SelectionStyleSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
SelectionStyleSettings |
SliderInside
Whether to render the slider inside or outside the selection boundaries
Declaration
public bool SliderInside { get; set; }
Property Value
Type | Description |
---|---|
bool |
SwapSelectedColors
Whether to swap the selected colors or not
Declaration
public bool SwapSelectedColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Top
Top position
Declaration
public int Top { get; set; }
Property Value
Type | Description |
---|---|
int |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Width
Selection width
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceRender()
Renders a selection
Declaration
public string Render()
Returns
Type | Description |
---|---|
string | A string representation of the selection |