SpinButtonActiveXControl class
SpinButtonActiveXControl class
Represents the SpinButton control.
Inheritance: SpinButtonActiveXControl
The SpinButtonActiveXControl 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 | |
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")