StringExtensionsCenterText Method

Overload List

CenterText(String, Int32) Centers text within the specified maximum length, biased to the left. Text will be padded to the left and right with spaces. If value is greater than specified maximum length, value returned will be truncated from the right.
CenterText(String, Int32, Char) Centers text within the specified maximum length, biased to the left. Text will be padded to the left and right with specified padding character. If value is greater than specified maximum length, value returned will be truncated from the right.

See Also