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
textustringThe text to justify.
widthintIf the text length is greater that
widthit will be clipped.talignTextAlignmentAlignment.
textDirectionTextDirectionThe 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
textustringThe text to justify.
widthintIf the text length is greater that
widthit will be clipped.justifyboolJustify.
textDirectionTextDirectionThe text direction.
Returns
- ustring
Justified and clipped text.