ToggleButtonActiveXControl class
ToggleButtonActiveXControl class
Represents a ToggleButton ActiveX control.
Inheritance: ToggleButtonActiveXControl
The ToggleButtonActiveXControl type exposes the following members:
Properties
Property | Description |
---|---|
workbook | |
type | Gets the type of the ActiveX control. |
width | |
height | |
mouse_icon | |
mouse_pointer | |
fore_ole_color | |
back_ole_color | |
is_visible | |
shadow | |
linked_cell | |
list_fill_range | |
data | |
is_enabled | |
is_locked | |
is_transparent | |
is_auto_size | |
ime_mode | |
font | |
text_align | |
caption | Gets and set the descriptive text that appears on a control. |
picture_position | Gets and set the location of the control’s picture relative to its caption. |
special_effect | Gets and sets the special effect of the control. |
picture | Gets and sets the data of the picture. |
accelerator | Gets and sets the accelerator key for the control. |
value | Indicates if the control is checked or not. |
is_triple_state | Indicates how the specified control will display Null values. |
Example
from aspose import pycore
from aspose.cells import Workbook
from aspose.cells.drawing.activexcontrols import ControlType, ToggleButtonActiveXControl
# Initialize a new workbook.
book = Workbook()
# Add a ToggleButtonActiveXControl.
shape = book.worksheets[0].shapes.add_active_x_control(ControlType.TOGGLE_BUTTON, 1, 0, 1, 0, 100, 50)
activeXControl = pycore.cast(ToggleButtonActiveXControl, shape.active_x_control)
# do your business
# Save the excel file.
book.save("exmaple.xlsx")