## U16String::Trim() const method


Removes all leading and trailing white-space characters from the current string.

```cpp
U16String Aspose::Cells::U16String::Trim() const
```


## ReturnValue

The string that remains after all white-space characters are removed from the start and end of the current string.

## See Also

* Class [U16String](../)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::Trim(char16_t) const method


Removes all leading and trailing instances of a character from the current string.

```cpp
U16String Aspose::Cells::U16String::Trim(char16_t trimChar) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| trimChar | char16_t | A character to remove. |

## ReturnValue

The string that remains after all instances of the trimChar character are removed from the start and end of the current string.

## See Also

* Class [U16String](../)
* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::Trim(const Vector \<char16_t\>\&) const method


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

```cpp
U16String Aspose::Cells::U16String::Trim(const Vector<char16_t> &trimChars) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| trimChars | const Vector \<char16_t\>\& | An array of characters to remove. |

## ReturnValue



## See Also

* Class [U16String](../)
* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
