PadLeft
Function | Parameters | Return value |
---|---|---|
PadLeft |
string s, ``int totalWidth |
string |
Right-aligns the characters in the "s" string, padding with spaces on the left for a total width specified in the "totalWidth" parameter.
Example:
PadLeft("ABC", 5) = " ABC"
Function | Parameters | Return value |
---|---|---|
PadLeft |
string s, ``int totalWidth,``char paddingChar |
string |
Right-aligns the characters in the "s" string, padding with "paddingChar" characters on the left for a total width specified in the "totalWidth" parameter.
Example:
PadLeft("ABC", 5, '0') = "00ABC"