共用方式為


String.PadLeft Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 PadLeft(Int32) Right-aligns the characters in this instance, padding with spaces on the left for a specified total length.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 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

See Also

Reference