Class TuiFramedCheckBox
- Namespace
- AshConsoleGraphics.Interactive
- Assembly
- AshConsoleGraphics.dll
Checkbox (on/off) with a frame
public class TuiFramedCheckBox : TuiCheckBox
- Inheritance
-
TuiFramedCheckBox
- Inherited Members
Constructors
TuiFramedCheckBox(char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox with defaut frame chars and the same colors when selected and not selected
public TuiFramedCheckBox(char u, char c, bool b, Placement p, int x, int y, CharFormat? ff = null, CharFormat? cf = null, CharFormat? pf = null)
Parameters
ucharUnchecked char
ccharChecked char
bboolIf the checkbox is initially checked or not
pPlacementxintyintffCharFormatFrame format
cfCharFormatCheck format
pfCharFormatSelector format
TuiFramedCheckBox(char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox with default frame chars ('┌┐└┘──││')
public TuiFramedCheckBox(char u, char c, bool b, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? cf, CharFormat? scf, CharFormat? pf)
Parameters
ucharUnchecked char
ccharChecked char
bboolIf the checkbox is initially checked or not
pPlacementxintyintffCharFormatNot selected frame format
sffCharFormatSelected frame format
cfCharFormatNot selected check format
scfCharFormatSelected check format
pfCharFormatSelector format
TuiFramedCheckBox(string, char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox with the same colors when selected and not selected
public TuiFramedCheckBox(string chars, char u, char c, bool b, Placement p, int x, int y, CharFormat? ff = null, CharFormat? cf = null, CharFormat? pf = null)
Parameters
charsstringFrame charchters
ucharUnchecked char
ccharChecked char
bboolIf the checkbox is initially checked or not
pPlacementxintyintffCharFormatFrame format
cfCharFormatCheck format
pfCharFormatSelector format
TuiFramedCheckBox(string, char, char, bool, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new framed checkbox
public TuiFramedCheckBox(string chars, char u, char c, bool b, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? cf, CharFormat? scf, CharFormat? pf)
Parameters
charsstringFrame charchters
ucharUnchecked char
ccharChecked char
bboolIf the checkbox is initially checked or not
pPlacementxintyintffCharFormatNot selected frame format
sffCharFormatSelected frame format
cfCharFormatNot selected check format
scfCharFormatSelected check format
pfCharFormatSelector format
Properties
FrameChars
Frame charachters. An example would be '┌┐└┘──││'
public char[] FrameChars { get; set; }
Property Value
- char[]
FrameFormat
Not selected frame charachter format
public CharFormat? FrameFormat { get; set; }
Property Value
SelectedFrameFormat
Selected frame charachter format
public CharFormat? SelectedFrameFormat { get; set; }
Property Value
Methods
BufferNeedsToBeGenerated()
In most cases, the base implementation is enough
protected override bool BufferNeedsToBeGenerated()
Returns
GenerateBuffer()
The method that generates the element's buffer
protected override Buffer GenerateBuffer()