Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TStringHelper.PadRight

Pad the string on the right with an indicated character.

Declaration

Source position: syshelph.inc line 144

public function TStringHelper.PadRight(

  ATotalWidth: SizeInt

):string; overload;

function TStringHelper.PadRight(

  ATotalWidth: SizeInt;

  PaddingChar: char

):string; overload;

Description

PadLeft pads the string (Self) on the right (i.e. at the end) till it reaches length ATotalWidth with character PaddingChar. If PaddingChar is omitted, a space is used.

See also

TStringHelper.PadLeft

  

Pad the string on the left with an indicated character.


Documentation generated on: Feb 02 2025