Removes a string of characters from the end of this string.
[Visual Basic] Public Function TrimEnd( _ ByVal trimChars() As Char _ ) As String [C#] public string TrimEnd( char[] trimChars ); [C++] public: String* TrimEnd( __wchar_t* trimChars[] ); [JScript] public function TrimEnd( trimChars : Char[] ) : String;
Returns the substring of characters remaining after the removal of characters from the end of this string.
The TrimEnd method begins with the last character in this string and continues to remove characters until it finds a character that is not in the specified array.
As a special case, white space can be removed from the end of the string by passing null as the character array. White space is defined by WhitespaceChars.
The trimChars parameter can be null to indicate that white space should be removed from the end of the string.