Partager via


String.Trim Method

Removes all occurrences of a specified array of Unicode characters from the beginning and end of the current String object.

Overload List

Name Description
String.Trim () Removes all white-space characters from the beginning and end of the current String object.
String.Trim (Char[]) Removes all occurrences of a specified array of Unicode characters from the beginning and end of the current String object.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

String Class
String Members
System Namespace