## ToggleButtonActiveXControl class


Represents a ToggleButton ActiveX control.

```cpp
class ToggleButtonActiveXControl : public Aspose::Cells::Drawing::ActiveXControls::ActiveXControl
```

## Methods

| Method | Description |
| --- | --- |
| [ActiveXControl(ActiveXControl_Impl* impl)](../activexcontrol/activexcontrol/) | Constructs from an implementation object. |
| [ActiveXControl(const ActiveXControl\& src)](../activexcontrol/activexcontrol/) | Copy constructor. |
| [ActiveXControl(const ActiveXControlBase\& src)](../activexcontrol/activexcontrol/) | Constructs from a parent object. |
| [ActiveXControlBase(ActiveXControlBase_Impl* impl)](../activexcontrolbase/activexcontrolbase/) | Constructs from an implementation object. |
| [ActiveXControlBase(const ActiveXControlBase\& src)](../activexcontrolbase/activexcontrolbase/) | Copy constructor. |
| [GetAccelerator()](./getaccelerator/) | Gets and sets the accelerator key for the control. |
| [GetBackOleColor()](../activexcontrolbase/getbackolecolor/) | Gets and sets the ole color of the background. |
| [GetCaption()](./getcaption/) | Gets and set the descriptive text that appears on a control. |
| [GetData()](../activexcontrol/getdata/) | Gets and sets the binary data of the control. |
| [GetFont()](../activexcontrol/getfont/) | Represents the font of the control. |
| [GetForeOleColor()](../activexcontrolbase/getforeolecolor/) | Gets and sets the ole color of the foreground. |
| [GetHeight()](../activexcontrolbase/getheight/) | Gets and sets the height of the control in unit of points. |
| [GetIMEMode()](../activexcontrol/getimemode/) | Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. |
| [GetLinkedCell()](../activexcontrolbase/getlinkedcell/) | Gets and sets the linked cell. |
| [GetListFillRange()](../activexcontrolbase/getlistfillrange/) | Gets and sets the list fill range. |
| [GetMouseIcon()](../activexcontrolbase/getmouseicon/) | Gets and sets a custom icon to display as the mouse pointer for the control. |
| [GetMousePointer()](../activexcontrolbase/getmousepointer/) | Gets and sets the type of icon displayed as the mouse pointer for the control. |
| [GetPicture()](./getpicture/) | Gets and sets the data of the picture. |
| [GetPicturePosition()](./getpictureposition/) | Gets and set the location of the control's picture relative to its caption. |
| [GetShadow()](../activexcontrolbase/getshadow/) | Indicates whether to show a shadow. |
| [GetSpecialEffect()](./getspecialeffect/) | Gets and sets the special effect of the control. |
| [GetTextAlign()](../activexcontrol/gettextalign/) | Represents how to align the text used by the control. |
| virtual [GetType()](./gettype/) | Gets the type of the ActiveX control. |
| [GetValue()](./getvalue/) | Indicates if the control is checked or not. |
| [GetWidth()](../activexcontrolbase/getwidth/) | Gets and sets the width of the control in unit of points. |
| [GetWorkbook()](../activexcontrolbase/getworkbook/) | Gets the [Workbook](../../aspose.cells/workbook/) object. |
| [IsAutoSize()](../activexcontrol/isautosize/) | Indicates whether the control will automatically resize to display its entire contents. |
| [IsEnabled()](../activexcontrol/isenabled/) | Indicates whether the control can receive the focus and respond to user-generated events. |
| [IsLocked()](../activexcontrol/islocked/) | Indicates whether data in the control is locked for editing. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| [IsTransparent()](../activexcontrol/istransparent/) | Indicates whether the control is transparent. |
| [IsTripleState()](./istriplestate/) | Indicates how the specified control will display Null values. |
| [IsVisible()](../activexcontrolbase/isvisible/) | Indicates whether this control is visible. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const ToggleButtonActiveXControl\& src)](./operator_asm/) | operator= |
| [operator=(const ActiveXControl\& src)](../activexcontrol/operator_asm/) | operator= |
| [operator=(const ActiveXControlBase\& src)](../activexcontrolbase/operator_asm/) | operator= |
| [SetAccelerator(char16_t value)](./setaccelerator/) | Gets and sets the accelerator key for the control. |
| [SetBackOleColor(int32_t value)](../activexcontrolbase/setbackolecolor/) | Gets and sets the ole color of the background. |
| [SetCaption(const U16String\& value)](./setcaption/) | Gets and set the descriptive text that appears on a control. |
| [SetCaption(const char16_t* value)](./setcaption/) | Gets and set the descriptive text that appears on a control. |
| [SetForeOleColor(int32_t value)](../activexcontrolbase/setforeolecolor/) | Gets and sets the ole color of the foreground. |
| [SetHeight(double value)](../activexcontrolbase/setheight/) | Gets and sets the height of the control in unit of points. |
| [SetIMEMode(InputMethodEditorMode value)](../activexcontrol/setimemode/) | Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. |
| [SetIsAutoSize(bool value)](../activexcontrol/setisautosize/) | Indicates whether the control will automatically resize to display its entire contents. |
| [SetIsEnabled(bool value)](../activexcontrol/setisenabled/) | Indicates whether the control can receive the focus and respond to user-generated events. |
| [SetIsLocked(bool value)](../activexcontrol/setislocked/) | Indicates whether data in the control is locked for editing. |
| [SetIsTransparent(bool value)](../activexcontrol/setistransparent/) | Indicates whether the control is transparent. |
| [SetIsTripleState(bool value)](./setistriplestate/) | Indicates how the specified control will display Null values. |
| [SetIsVisible(bool value)](../activexcontrolbase/setisvisible/) | Indicates whether this control is visible. |
| [SetLinkedCell(const U16String\& value)](../activexcontrolbase/setlinkedcell/) | Gets and sets the linked cell. |
| [SetLinkedCell(const char16_t* value)](../activexcontrolbase/setlinkedcell/) | Gets and sets the linked cell. |
| [SetListFillRange(const U16String\& value)](../activexcontrolbase/setlistfillrange/) | Gets and sets the list fill range. |
| [SetListFillRange(const char16_t* value)](../activexcontrolbase/setlistfillrange/) | Gets and sets the list fill range. |
| [SetMouseIcon(const Vector \<uint8_t\>\& value)](../activexcontrolbase/setmouseicon/) | Gets and sets a custom icon to display as the mouse pointer for the control. |
| [SetMousePointer(ControlMousePointerType value)](../activexcontrolbase/setmousepointer/) | Gets and sets the type of icon displayed as the mouse pointer for the control. |
| [SetPicture(const Vector \<uint8_t\>\& value)](./setpicture/) | Gets and sets the data of the picture. |
| [SetPicturePosition(ControlPicturePositionType value)](./setpictureposition/) | Gets and set the location of the control's picture relative to its caption. |
| [SetShadow(bool value)](../activexcontrolbase/setshadow/) | Indicates whether to show a shadow. |
| [SetSpecialEffect(ControlSpecialEffectType value)](./setspecialeffect/) | Gets and sets the special effect of the control. |
| [SetTextAlign(TextAlignmentType value)](../activexcontrol/settextalign/) | Represents how to align the text used by the control. |
| [SetValue(CheckValueType value)](./setvalue/) | Indicates if the control is checked or not. |
| [SetWidth(double value)](../activexcontrolbase/setwidth/) | Gets and sets the width of the control in unit of points. |
| [ToggleButtonActiveXControl(ToggleButtonActiveXControl_Impl* impl)](./togglebuttonactivexcontrol/) | Constructs from an implementation object. |
| [ToggleButtonActiveXControl(const ToggleButtonActiveXControl\& src)](./togglebuttonactivexcontrol/) | Copy constructor. |
| [ToggleButtonActiveXControl(const ActiveXControl\& src)](./togglebuttonactivexcontrol/) | Constructs from a parent object. |
| [~ActiveXControl()](../activexcontrol/~activexcontrol/) | Destructor. |
| [~ActiveXControlBase()](../activexcontrolbase/~activexcontrolbase/) | Destructor. |
| [~ToggleButtonActiveXControl()](./~togglebuttonactivexcontrol/) | Destructor. |
## Fields

| Field | Description |
| --- | --- |
| [_impl](./_impl/) | The implementation object. |

## Examples


```cpp
Aspose::Cells::Startup();
//Initialize a new workbook.
Workbook book;

//Add a ToggleButtonActiveXControl.
Shape shape = book.GetWorksheets().Get(0).GetShapes().AddActiveXControl(ControlType::ToggleButton, 1, 0, 1, 0, 100, 50);
ToggleButtonActiveXControl activeXControl = (ToggleButtonActiveXControl)shape.GetActiveXControl();


//Save the excel file.
book.Save(u"exmaple.xlsx");
Aspose::Cells::Cleanup();
```

## See Also

* Class [ActiveXControl](../activexcontrol/)
* Namespace [Aspose::Cells::Drawing::ActiveXControls](../)
* Library [Aspose.Cells for C++](../../)
