ExtensionMethodsLeft(String, Int32, Int32) Method

Return left part of string with right padding

Definition

Namespace: ExtensionMethods
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
public static string Left(
	this string str,
	int number,
	int padding
)

Parameters

str  String
string to parse
number  Int32
Maximum number characters
padding  Int32
Pad on right with n characters

Return Value

String

Usage Note

In 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).

See Also