String.PadLeft() or PadRight() pads the string with a character for a
given length.
The following sample pads the string on the left with 3 *(stars). If
nothing is specified, it adds spaces.
str1= str.PadLeft(34,'*');
C# source code, articles and tutorials for C# and .NET developers, plus a You can post your code or articles..
String.PadLeft() or PadRight() pads the string with a character for a
given length.
The following sample pads the string on the left with 3 *(stars). If
nothing is specified, it adds spaces.
str1= str.PadLeft(34,'*');
0 comments:
Post a Comment