Class TuiMultiLineFramedTextBox
- Namespace
- AshConsoleGraphics.Interactive
- Assembly
- AshConsoleGraphics.dll
A textbox where you can write inside a frame that can be several lines in height
public class TuiMultiLineFramedTextBox : TuiWritable
- Inheritance
-
TuiMultiLineFramedTextBox
- Inherited Members
Constructors
TuiMultiLineFramedTextBox(string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox with default frame chars ('┌┐└┘──││') and same colors for selected and not selected
public TuiMultiLineFramedTextBox(string t, int xs, int ys, Placement p, int x, int y, CharFormat? ff = null, CharFormat? tf = null, CharFormat? pf = null)
Parameters
t
stringInitial text
xs
intBox X size
ys
intBox Y size
p
Placementx
inty
intff
CharFormatFrame format
tf
CharFormatText format
pf
CharFormatSelector format
TuiMultiLineFramedTextBox(string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox with default frame chars ('┌┐└┘──││')
public TuiMultiLineFramedTextBox(string t, int xs, int ys, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? tf, CharFormat? stf, CharFormat? pf)
Parameters
t
stringInitial text
xs
intBox X size
ys
intBox Y size
p
Placementx
inty
intff
CharFormatNot selected frame format
sff
CharFormatSelected frame format
tf
CharFormatNot selected text format
stf
CharFormatSelected text format
pf
CharFormatSelector format
TuiMultiLineFramedTextBox(string, string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox with the same colors when selected and not selected
public TuiMultiLineFramedTextBox(string chars, string t, int xs, int ys, Placement p, int x, int y, CharFormat? ff = null, CharFormat? tf = null, CharFormat? pf = null)
Parameters
chars
stringFrame charchters
t
stringInitial text
xs
intBox X size
ys
intBox Y size
p
Placementx
inty
intff
CharFormatFrame format
tf
CharFormatText format
pf
CharFormatSelector format
TuiMultiLineFramedTextBox(string, string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox
public TuiMultiLineFramedTextBox(string chars, string t, int xs, int ys, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? tf, CharFormat? stf, CharFormat? pf)
Parameters
chars
stringFrame charchters
t
stringInitial text
xs
intBox X size
ys
intBox Y size
p
Placementx
inty
intff
CharFormatNot selected frame format
sff
CharFormatSelected frame format
tf
CharFormatNot selected text format
stf
CharFormatSelected text format
pf
CharFormatSelector format
Properties
BoxXsize
The visible X size of the box. Length is xsize * ysize
public int BoxXsize { get; set; }
Property Value
BoxYsize
The visible Y size of the box. Length is xsize * ysize
public int BoxYsize { get; set; }
Property Value
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
SelectedTextFormat
Selected text charachter format
public CharFormat? SelectedTextFormat { get; set; }
Property Value
SelectorFormat
Format of the selector pads '>' '<' that surround the element when selcted
public CharFormat? SelectorFormat { get; set; }
Property Value
TextFormat
Not selected text charachter format
public CharFormat? TextFormat { 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()