Method Justify | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Justify(string, int, char, TextDirection, int)
Justifies the text to fill the width provided. Space will be added between words to make the text just fitwidth
. Spaces will not be added to the start or end.
public static string Justify(string text, int width, char spaceChar = ' ', TextDirection textDirection = TextDirection.LeftRight_TopBottom, int tabWidth = 0)
Parameters
text
string
width
int
spaceChar
char
Character to replace whitespace and pad with. For debugging purposes.
textDirection
TextDirection
The text direction.
tabWidth
int
The number of columns used for a tab.
Returns
The justified text.