Add ActiveX Controls using Aspose.Cells with Golang via C++
Contents
[
Hide
]
You can add ActiveX controls with Aspose.Cells using the ShapeCollection::AddActiveXControl() method. This method takes a parameter ControlType which specifies the type of ActiveX control to be added inside a worksheet. It has the following values:
- ControlType::CheckBox
- ControlType::ComboBox
- ControlType::CommandButton
- ControlType::Image
- ControlType::Label
- ControlType::ListBox
- ControlType::RadioButton
- ControlType::ScrollBar
- ControlType::SpinButton
- ControlType::TextBox
- ControlType::ToggleButton
- ControlType::Unknown
Once you have added the ActiveX control inside the shape collection, you can access the ActiveX control object via the Shape::get_ActiveXControl() method and set its various properties.
The following sample code adds a Toggle Button ActiveX Control using Aspose.Cells for C++.