Class TuiCheckBox
- Namespace
- AshConsoleGraphics.Interactive
- Assembly
- AshConsoleGraphics.dll
Checkbox (on/off)
public class TuiCheckBox : TuiSelectable
- Inheritance
-
TuiCheckBox
- Derived
- Inherited Members
Constructors
TuiCheckBox(char, char, bool, Placement, int, int, CharFormat?, CharFormat?)
Initializes a new framed checkbox with the same colors when selected and not selected
public TuiCheckBox(char u, char c, bool b, Placement p, int x, int y, CharFormat? cf = null, CharFormat? pf = null)
Parameters
ucharUnchecked char
ccharChecked char
bboolIf the checkbox is initially checked or not
pPlacementxintyintcfCharFormatCheck format
pfCharFormatSelector format
TuiCheckBox(char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox
public TuiCheckBox(char u, char c, bool b, Placement p, int x, int y, CharFormat? cf, CharFormat? scf, CharFormat? pf)
Parameters
ucharUnchecked char
ccharChecked char
bboolIf the checkbox is initially checked or not
pPlacementxintyintcfCharFormatNot selected check format
scfCharFormatSelected check format
pfCharFormatSelector format
Properties
CheckFormat
Not selected check charachter format
public CharFormat? CheckFormat { get; set; }
Property Value
Checked
If its checked or not
public bool Checked { get; set; }
Property Value
CheckedChar
Check carachter when the checkbox is checked
public char CheckedChar { get; set; }
Property Value
SelectedCheckFormat
Selected check charachter format
public CharFormat? SelectedCheckFormat { get; set; }
Property Value
SelectorFormat
Format of the selectors that surround the element when selcted
public CharFormat? SelectorFormat { get; set; }
Property Value
UnCheckedChar
Check carachter when the checkbox is unchecked
public char UnCheckedChar { get; set; }
Property Value
Methods
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()