ExtensionMethodsLeftPad Method
Return left part of string with Left padding
Namespace: ExtensionMethodsAssembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
public static string LeftPad(
this string str,
int number,
int padding
)
- str String
- string to parse
- number Int32
- Maximum number characters
- padding Int32
- Pad on Left with n characters
StringIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).