## DataLabels::SetText(const U16String\&) method


Gets or sets the text of the data label.

```cpp
void Aspose::Cells::Charts::DataLabels::SetText(const U16String &value)
```

## Remarks


Only works when this is a data label of a chart point. 
## See Also

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


Gets or sets the text of the data label.

```cpp
void Aspose::Cells::Charts::DataLabels::SetText(const char16_t *value)
```

## Remarks


Only works when this is a data label of a chart point. 
## See Also

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