Method Justify
Justify(ustring, int, char, TextDirection)
Justifies the text to fill the width provided. Space will be added between words (demarked by spaces and tabs) to
make the text just fit width
. Spaces will not be added to the ends.
public static ustring Justify(ustring text, int width, char spaceChar = ' ', TextDirection textDirection = TextDirection.LeftRight_TopBottom)
Parameters
text
ustringwidth
intspaceChar
charCharacter to replace whitespace and pad with. For debugging purposes.
textDirection
TextDirectionThe text direction.
Returns
- ustring
The justified text.