Bridge

String..::..Trim Method (array<Char>[]()[][])

Removes all leading and trailing occurrences of a set of characters specified in an array from the current String object.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public string Trim(
	params char[] values
)
<TemplateAttribute> _
Public Function Trim ( _
	ParamArray values As Char() _
) As String
[TemplateAttribute]
public:
String^ Trim(
	... array<wchar_t^>^ values
)

Parameters

values
Type: array<System..::..Char>[]()[][]

Return Value

The string that remains after all occurrences of the characters in the trimChars parameter are removed from the start and end of the current string. If trimChars is null or an empty array, white-space characters are removed instead. If no characters can be trimmed from the current instance, the method returns the current instance unchanged.