ScrollBarActiveXControl classe
ScrollBarActiveXControl classe
Représente le contrôle ScrollBar.
Héritage: ScrollBarActiveXControl →
SpinButtonActiveXControl
Le type ScrollBarActiveXControl 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. |
| large_change | Obtient et définit le montant par lequel la propriété Position change |
Exemple
from aspose import pycore
from aspose.cells import Workbook
from aspose.cells.drawing.activexcontrols import ControlType, ScrollBarActiveXControl
# Initialize a new workbook.
book = Workbook()
# Add a ToggleButtonActiveXControl.
shape = book.worksheets[0].shapes.add_active_x_control(ControlType.SCROLL_BAR, 1, 0, 1, 0, 100, 50)
activeXControl = pycore.cast(ScrollBarActiveXControl, shape.active_x_control)
# do your business
# Save the excel file.
book.save("exmaple.xlsx")
Voir également
- module
aspose.cells.drawing.activexcontrols - classe
ScrollBarActiveXControl - classe
SpinButtonActiveXControl