Agregar controles ActiveX usando Aspose.Cells con Golang vía C++
Contents
[
Hide
]
Puede agregar controles ActiveX con Aspose.Cells usando el método ShapeCollection::AddActiveXControl(). Este método toma un parámetro ControlType que especifica el tipo de control ActiveX que se agregará dentro de una hoja de cálculo. Tiene los siguientes valores:
- ControlType::CheckBox
- ControlType::ComboBox
- ControlType::CommandButton
- ControlType::Image
- ControlType::Label
- ControlType::ListBox
- ControlType::RadioButton
- ControlType::ScrollBar
- ControlType::SpinButton
- ControlType::TextBox
- ControlType::ToggleButton
- ControlType::Unknown
Una vez que ha agregado el control ActiveX dentro de la colección de formas, puede acceder al objeto control ActiveX a través del método Shape::get_ActiveXControl() y establecer sus diversas propiedades.
El siguiente código de ejemplo agrega un control ActiveX de botón de alternancia usando Aspose.Cells for C++.