Class PassiveSelection
Passive selection cyclic renderer
Namespace: Terminaux.Writer.CyclicWriters.Simple
Assembly: Terminaux.dll
Syntax
public class PassiveSelection : SimpleCyclicWriter
Constructors
| Edit this page View SourcePassiveSelection()
Makes a new selection instance
Declaration
public PassiveSelection()
PassiveSelection(InputChoiceCategoryInfo[])
Makes a new selection instance
Declaration
public PassiveSelection(InputChoiceCategoryInfo[] categories)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceCategoryInfo[] | categories | Categories |
PassiveSelection(InputChoiceGroupInfo[])
Makes a new selection instance
Declaration
public PassiveSelection(InputChoiceGroupInfo[] groups)
Parameters
Type | Name | Description |
---|---|---|
InputChoiceGroupInfo[] | groups | Groups |
PassiveSelection(InputChoiceInfo[])
Makes a new selection instance
Declaration
public PassiveSelection(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 |
BackgroundColor
Option background color
Declaration
public Color BackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
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 |
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 |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceRender()
Renders a selection
Declaration
public override string Render()
Returns
Type | Description |
---|---|
string | A string representation of the selection |