Skip to content

TStringHelper.PadLeft

Pad the string on the left with an indicated character

Declaration

Source position: syshelph.inc line 142

public 
  function PadLeft(ATotalWidth: SizeInt) : string;  Overload;
  function PadLeft(ATotalWidth: SizeInt; PaddingChar: Char) : string
                  ;  Overload;

Description

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

See also

Name Description
TStringHelper.PadRight Pad the string on the right with an indicated character