ScrollBarActiveXControl classe

ScrollBarActiveXControl classe

Représente le contrôle ScrollBar.

Héritage: ScrollBarActiveXControlSpinButtonActiveXControl

Le type ScrollBarActiveXControl expose les membres suivants :

Propriétés

PropriétéDescription
workbook
typeObtient 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
minObtient et définit la valeur minimale acceptable.
maxObtient et définit la valeur maximale acceptable.
positionObtient et définit la valeur.
small_changeObtient et définit le montant par lequel la propriété Position change
orientationObtient et définit si le SpinButton ou la ScrollBar est orienté verticalement ou horizontalement.
large_changeObtient 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