## Shape::SetName(const U16String\&) method


Gets and sets the name of the shape.

```cpp
void Aspose::Cells::Drawing::Shape::SetName(const U16String &value)
```


## Examples


```cpp
U16String name = u"shape1";
if (shape.GetName() == u"shape")
{
    shape.SetName(name);
}
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [Shape](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
## Shape::SetName(const char16_t*) method


Gets and sets the name of the shape.

```cpp
void Aspose::Cells::Drawing::Shape::SetName(const char16_t *value)
```


## Examples


```cpp
if (shape.GetName() == u"shape")
{
    shape.SetName(u"shape1");
}
```

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [Shape](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
