Class ParagraphBuilder
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
Multi-line text with optional wrapping, alignment and scrolling.
public sealed class ParagraphBuilder
- Inheritance
-
ParagraphBuilder
- Inherited Members
Methods
Alignment(Alignment)
The alignment of lines that don't set their own.
public ParagraphBuilder Alignment(Alignment alignment)
Parameters
alignmentAlignment
Returns
Block(BlockBuilder)
Draw a block around the text.
public ParagraphBuilder Block(BlockBuilder block)
Parameters
blockBlockBuilder
Returns
Draw(Buffer, Rect)
Draw the paragraph.
public void Draw(Buffer buf, Rect area)
Parameters
Scroll(int)
Skip this many rows from the top.
public ParagraphBuilder Scroll(int rows)
Parameters
rowsint
Returns
State(ScrollState)
Scroll with a state the paragraph keeps in range, and show a scrollbar when the text overflows.
public ParagraphBuilder State(ScrollState state)
Parameters
stateScrollState
Returns
Style(Style)
A style patched over the theme's text style.
public ParagraphBuilder Style(Style style)
Parameters
styleStyle
Returns
Text(Text)
The text. A string is split into lines at line breaks.
public ParagraphBuilder Text(Text text)
Parameters
textText
Returns
Wrap(WrapMode)
How long lines break. The default is None.
public ParagraphBuilder Wrap(WrapMode wrap)
Parameters
wrapWrapMode