Click or drag to resize

StringExtensionsCenterText Method

Overload List
  Name Description
Public Extension Method 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.
Public Extension Method 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.
Top
See Also