Method ClipAndJustify
ClipAndJustify(ustring, int, TextAlignment, TextDirection)
Justifies text within a specified width.
public static ustring ClipAndJustify(ustring text, int width, TextAlignment talign, TextDirection textDirection = TextDirection.LeftRight_TopBottom)
Parameters
text
ustringThe text to justify.
width
intIf the text length is greater that
width
it will be clipped.talign
TextAlignmentAlignment.
textDirection
TextDirectionThe text direction.
Returns
- ustring
Justified and clipped text.
ClipAndJustify(ustring, int, bool, TextDirection)
Justifies text within a specified width.
public static ustring ClipAndJustify(ustring text, int width, bool justify, TextDirection textDirection = TextDirection.LeftRight_TopBottom)
Parameters
text
ustringThe text to justify.
width
intIf the text length is greater that
width
it will be clipped.justify
boolJustify.
textDirection
TextDirectionThe text direction.
Returns
- ustring
Justified and clipped text.