System Namespace String Class
Removes all occurrences of a set of characters specified in a Unicode character array from the beginning of this instance.
[ VB ]
<Serializable>
Public Function TrimStart ( _
ByVal ParamArray trimChars ( ) As Char _
) As String
[ C# ]
[ Serializable ]
public string TrimStart (
params char [ ] trimChars
);
[ C++ ]
[ Serializable ]
public: String* TrimStart (
__wchar_t trimChars __gc [ ]
);
[ JScript ]
public Serializable
function TrimStart (
trimChars : Char [ ]
) : String;
- trimChars
- An array of Unicode characters to be removed or a null reference ( Nothing in Visual Basic ).
The String that remains after all occurrences of characters in trimChars are removed. If trimChars is a null reference ( Nothing in Visual Basic ), white space characters are removed instead.
This method defines white space characters as hexadecimal 0x9, 0xA, 0xB, 0xC, 0xD, 0x20, 0xA0, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x200B, 0x3000, and 0xFEFF.
String Class String Members Char Trim TrimEnd