SpinButtonActiveXControl clase
SpinButtonActiveXControl clase
Representa el control SpinButton.
Herencia: SpinButtonActiveXControl
El tipo SpinButtonActiveXControl expone los siguientes miembros:
Propiedades
Propiedad | Descripción |
---|---|
workbook | |
type | Obtiene el tipo del control ActiveX. |
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 | Obtiene y establece el valor mínimo aceptable. |
max | Obtiene y establece el valor máximo aceptable. |
position | Obtiene y establece el valor. |
small_change | Obtiene y establece la cantidad en la que cambia la propiedad Posición |
orientation | Obtiene y establece si el SpinButton o ScrollBar está orientado vertical u horizontalmente. |
Ejemplo
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")