## ToggleButtonActiveXControl::SetCaption(const U16String\&) method


Gets and set the descriptive text that appears on a control.

```cpp
void Aspose::Cells::Drawing::ActiveXControls::ToggleButtonActiveXControl::SetCaption(const U16String &value)
```


## Examples


```cpp
U16String caption = u"ExampleButton";
activeXControl.SetCaption(caption);
```

## See Also

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


Gets and set the descriptive text that appears on a control.

```cpp
void Aspose::Cells::Drawing::ActiveXControls::ToggleButtonActiveXControl::SetCaption(const char16_t *value)
```


## Examples


```cpp
activeXControl.SetCaption(u"ExampleButton");
```

## See Also

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