String.PadLeft Method

Returns a new string of a specified length in which the beginning of the string is padded with spaces or a specified Unicode character.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework PadLeft(Int32) Right-aligns the characters in this instance, padding with spaces on the left for a specified total length.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework PadLeft(Int32, Char) Right-aligns the characters in this instance, padding on the left with a specified Unicode character for a specified total length.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft