Padding a String

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: