Table of Contents

Class TuiFramedScrollingTextBox

Namespace
AshConsoleGraphics.Interactive
Assembly
AshConsoleGraphics.dll

A textbox where you can write inside a frame and it lets you write longer than the visible length of the box

public class TuiFramedScrollingTextBox : TuiWritable
Inheritance
TuiFramedScrollingTextBox
Inherited Members

Constructors

TuiFramedScrollingTextBox(string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)

Initializes a new scrolling textbox with default frame chars ('┌┐└┘──││') and same colors for selected and not selected

public TuiFramedScrollingTextBox(string t, int l, int bl, Placement p, int x, int y, CharFormat? ff = null, CharFormat? tf = null, CharFormat? pf = null)

Parameters

t string

Initial text

l int

Max text length

bl int

Visible textbox length

p Placement
x int
y int
ff CharFormat

Frame format

tf CharFormat

Text format

pf CharFormat

Selector format

TuiFramedScrollingTextBox(string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)

Initializes a new scrolling textbox with default frame chars ('┌┐└┘──││')

public TuiFramedScrollingTextBox(string t, int l, int bl, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? tf, CharFormat? stf, CharFormat? pf)

Parameters

t string

Initial text

l int

Max text length

bl int

Visible textbox length

p Placement
x int
y int
ff CharFormat

Not selected frame format

sff CharFormat

Selected frame format

tf CharFormat

Not selected text format

stf CharFormat

Selected text format

pf CharFormat

Selector format

TuiFramedScrollingTextBox(string, string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?)

Initializes a new scrolling textbox with the same colors when selected and not selected

public TuiFramedScrollingTextBox(string chars, string t, int l, int bl, Placement p, int x, int y, CharFormat? ff = null, CharFormat? tf = null, CharFormat? pf = null)

Parameters

chars string

Frame charchters

t string

Initial text

l int

Max text length

bl int

Visible textbox length

p Placement
x int
y int
ff CharFormat

Frame format

tf CharFormat

Text format

pf CharFormat

Selector format

TuiFramedScrollingTextBox(string, string, int, int, Placement, int, int, CharFormat?, CharFormat?, CharFormat?, CharFormat?, CharFormat?)

Initializes a new scrolling textbox

public TuiFramedScrollingTextBox(string chars, string t, int l, int bl, Placement p, int x, int y, CharFormat? ff, CharFormat? sff, CharFormat? tf, CharFormat? stf, CharFormat? pf)

Parameters

chars string

Frame charchters

t string

Initial text

l int

Max text length

bl int

Visible textbox length

p Placement
x int
y int
ff CharFormat

Not selected frame format

sff CharFormat

Selected frame format

tf CharFormat

Not selected text format

stf CharFormat

Selected text format

pf CharFormat

Selector format

Properties

BoxXsize

The visible X size of the box

public int BoxXsize { get; set; }

Property Value

int

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

CharFormat

SelectedFrameFormat

Selected frame charachter format

public CharFormat? SelectedFrameFormat { get; set; }

Property Value

CharFormat

SelectedTextFormat

Selected text charachter format

public CharFormat? SelectedTextFormat { get; set; }

Property Value

CharFormat

SelectorFormat

Format of the selector pads '>' '<' that surround the element when selcted

public CharFormat? SelectorFormat { get; set; }

Property Value

CharFormat

TextFormat

Not selected text charachter format

public CharFormat? TextFormat { get; set; }

Property Value

CharFormat

Methods

BufferNeedsToBeGenerated()

In most cases, the base implementation is enough

protected override bool BufferNeedsToBeGenerated()

Returns

bool

GenerateBuffer()

The method that generates the element's buffer

protected override Buffer GenerateBuffer()

Returns

Buffer