Lägg till ActiveX kontroller med Aspose.Cells med Golang via C++
Contents
[
Hide
]
Du kan lägga till ActiveX-kontroller med Aspose.Cells med hjälp av ShapeCollection::AddActiveXControl()-metoden. Denna metod tar en parameter ControlType som specificerar vilken typ av ActiveX-kontroll som ska läggas till i ett blad. Den har följande värden:
- ControlType::CheckBox
- ControlType::ComboBox
- ControlType::CommandButton
- ControlType::Image
- ControlType::Label
- ControlType::ListBox
- ControlType::RadioButton
- ControlType::ScrollBar
- ControlType::SpinButton
- ControlType::TextBox
- ControlType::ToggleButton
- ControlType::Unknown
När du har lagt till ActiveX-kontrollen i formgruppen kan du komma åt ActiveX-kontrollobjektet via Shape::get_ActiveXControl()-metoden och ställa in dess olika egenskaper.
Följande exempel kod lägger till en Toggle Button ActiveX-kontroll med Aspose.Cells for C++.