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
u
charUnchecked char
c
charChecked char
b
boolIf the checkbox is initially checked or not
p
Placementx
inty
intcf
CharFormatCheck format
pf
CharFormatSelector 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
u
charUnchecked char
c
charChecked char
b
boolIf the checkbox is initially checked or not
p
Placementx
inty
intcf
CharFormatNot selected check format
scf
CharFormatSelected check format
pf
CharFormatSelector 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 selector pads '>' '<' 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()