RadioButtonActiveXControl class
RadioButtonActiveXControl class
Represents a RadioButton ActiveX control.
Inheritance: RadioButtonActiveXControl
→
ToggleButtonActiveXControl
→
ActiveXControl
→
ActiveXControlBase
The RadioButtonActiveXControl type exposes the following members:
Properties
Property | Description |
---|---|
workbook | Gets the ActiveXControlBase.workbook object. |
type | Gets the type of the ActiveX control. |
width | Gets and sets the width of the control in unit of points. |
height | Gets and sets the height of the control in unit of points. |
mouse_icon | Gets and sets a custom icon to display as the mouse pointer for the control. |
mouse_pointer | Gets and sets the type of icon displayed as the mouse pointer for the control. |
fore_ole_color | Gets and sets the ole color of the foreground. |
back_ole_color | Gets and sets the ole color of the background. |
is_visible | Indicates whether this control is visible. |
shadow | Indicates whether to show a shadow. |
linked_cell | Gets and sets the linked cell. |
list_fill_range | Gets and sets the list fill range. |
data | Gets and sets the binary data of the control. |
is_enabled | Indicates whether the control can receive the focus and respond to user-generated events. |
is_locked | Indicates whether data in the control is locked for editing. |
is_transparent | Indicates whether the control is transparent. |
is_auto_size | Indicates whether the control will automatically resize to display its entire contents. |
ime_mode | Gets and sets the default run-time mode of the Input Method Editor for the control as it receives focus. |
font | Represents the font of the control. |
text_align | Represents how to align the text used by the control. |
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")
See Also
- module
aspose.cells.drawing.activexcontrols
- class
ActiveXControl
- class
ActiveXControlBase
- class
RadioButtonActiveXControl
- class
ToggleButtonActiveXControl