SpinButtonActiveXControl class
SpinButtonActiveXControl class
Represents the SpinButton control.
Inheritance: SpinButtonActiveXControl
→
ActiveXControl
→
ActiveXControlBase
The SpinButtonActiveXControl 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. |
min | Gets and sets the minimum acceptable value. |
max | Gets and sets the maximum acceptable value. |
position | Gets and sets the value. |
small_change | Gets and sets the amount by which the Position property changes |
orientation | Gets and sets whether the SpinButton or ScrollBar is oriented vertically or horizontally. |
Example
from aspose import pycore
from aspose.cells import Workbook
from aspose.cells.drawing.activexcontrols import ControlType, SpinButtonActiveXControl
# Initialize a new workbook.
book = Workbook()
# Add a ToggleButtonActiveXControl.
shape = book.worksheets[0].shapes.add_active_x_control(ControlType.SPIN_BUTTON, 1, 0, 1, 0, 100, 50)
activeXControl = pycore.cast(SpinButtonActiveXControl, 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
SpinButtonActiveXControl