SpinButtonActiveXControl classe
SpinButtonActiveXControl classe
Représente le contrôle SpinButton.
Héritage: SpinButtonActiveXControl
Le type SpinButtonActiveXControl expose les membres suivants :
Propriétés
| Propriété | Description |
|---|---|
| workbook | |
| type | Obtient le type du contrôle 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 | Obtient et définit la valeur minimale acceptable. |
| max | Obtient et définit la valeur maximale acceptable. |
| position | Obtient et définit la valeur. |
| small_change | Obtient et définit le montant par lequel la propriété Position change |
| orientation | Obtient et définit si le SpinButton ou la ScrollBar est orienté verticalement ou horizontalement. |
Exemple
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")