RadioButtonActiveXControl class
RadioButtonActiveXControl class
Represents a RadioButton ActiveX control.
Inheritance: RadioButtonActiveXControl →
ToggleButtonActiveXControl
The RadioButtonActiveXControl 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. |
| group_name | Gets and sets the group’s name. |
| alignment | Gets and set the position of the Caption relative to the control. |
| is_word_wrapped | Indicates whether the contents of the control automatically wrap at the end of a line. |
Example
from aspose import pycore
from aspose.cells import Workbook
from aspose.cells.drawing.activexcontrols import ControlType, RadioButtonActiveXControl
# Initialize a new workbook.
book = Workbook()
# Add a ToggleButtonActiveXControl.
shape = book.worksheets[0].shapes.add_active_x_control(ControlType.RADIO_BUTTON, 1, 0, 1, 0, 100, 50)
activeXControl = pycore.cast(RadioButtonActiveXControl, shape.active_x_control)
# do your business
# Save the excel file.
book.save("exmaple.xlsx")