## U16String::operator=(const U16String\&) method


Replaces the contents of the string with another string.

```cpp
U16String & Aspose::Cells::U16String::operator=(const U16String &str)
```

## See Also

* Class [U16String](../)
* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::operator=(std::initializer_list\<char\>) method


Replaces the contents of the string with the characters in the initializer list.

```cpp
U16String & Aspose::Cells::U16String::operator=(std::initializer_list<char> il)
```

## See Also

* Class [U16String](../)
* Class [Vector](../../vector/)
* Class [U16String](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## U16String::operator=(std::initializer_list\<char16_t\>) method


Replaces the contents of the string with the char16_t characters in the initializer list.

```cpp
U16String & Aspose::Cells::U16String::operator=(std::initializer_list<char16_t> il)
```

## See Also

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