asp.net.ph

String.Trim Method ( )

System Namespace   String Class


Removes all occurrences of white space characters from the beginning and end of this instance.

[ VB ]
<Serializable>
Overloads Public Function Trim ( ) As String

[ C# ]
[ Serializable ]
public string Trim ( );

[ C++ ]
[ Serializable ]
public: String* Trim ( );

[ JScript ]
public Serializable
function Trim ( ) : String;

Return Value

A new String equivalent to this instance after white space characters are removed.

Remarks

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.

See Also

String Members   String.Trim Overload List   TrimEnd   TrimStart Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph