Class TuiMultiLineScrollingFramedTextBox
- Namespace
- AshConsoleGraphics.Interactive
- Assembly
- AshConsoleGraphics.dll
A textbox where you can write inside a frame that can be several lines in height and scrolls
public class TuiMultiLineScrollingFramedTextBox : TuiWritable
- Inheritance
-
TuiMultiLineScrollingFramedTextBox
- Inherited Members
Constructors
TuiMultiLineScrollingFramedTextBox(string, int, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox with default frame chars ('┌┐└┘──││') and same colors for selected and not selected
public TuiMultiLineScrollingFramedTextBox(string t, int l, int xs, int ys, Placement p, int x, int y, CharFormat? ff = null, CharFormat? tf = null, CharFormat? curfor = null, CharFormat? pf = null)
Parameters
tstringInitial text
lintxsintBox X size
ysintBox Y size
pPlacementxintyintffCharFormatFrame format
tfCharFormatText format
curforCharFormatCursor format
pfCharFormatSelector format
TuiMultiLineScrollingFramedTextBox(string, int, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox with default frame chars ('┌┐└┘──││')
public TuiMultiLineScrollingFramedTextBox(string t, int l, int xs, int ys, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? tf, CharFormat? stf, CharFormat? curfor, CharFormat? pf)
Parameters
tstringInitial text
lintxsintBox X size
ysintBox Y size
pPlacementxintyintffCharFormatNot selected frame format
sffCharFormatSelected frame format
tfCharFormatNot selected text format
stfCharFormatSelected text format
curforCharFormatCursor format
pfCharFormatSelector format
TuiMultiLineScrollingFramedTextBox(string, string, int, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox with the same colors when selected and not selected
public TuiMultiLineScrollingFramedTextBox(string chars, string t, int l, int xs, int ys, Placement p, int x, int y, CharFormat? ff = null, CharFormat? tf = null, CharFormat? curfor = null, CharFormat? pf = null)
Parameters
charsstringFrame charchters
tstringInitial text
lintxsintBox X size
ysintBox Y size
pPlacementxintyintffCharFormatFrame format
tfCharFormatText format
curforCharFormatpfCharFormatSelector format
TuiMultiLineScrollingFramedTextBox(string, string, int, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)
Initializes a new multiline textbox
public TuiMultiLineScrollingFramedTextBox(string chars, string t, int l, int xs, int ys, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? tf, CharFormat? stf, CharFormat? curfor, CharFormat? pf)
Parameters
charsstringFrame charchters
tstringInitial text
lintxsintBox X size
ysintBox Y size
pPlacementxintyintffCharFormatNot selected frame format
sffCharFormatSelected frame format
tfCharFormatNot selected text format
stfCharFormatSelected text format
curforCharFormatCursor format
pfCharFormatSelector format
Properties
BoxXsize
The visible X size of the box.
public int BoxXsize { get; set; }
Property Value
BoxYsize
The visible Y size of the box
public int BoxYsize { get; set; }
Property Value
CursorFormat
Format of the cursor
public CharFormat? CursorFormat { 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 selectors 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()