ScrollBarActiveXControl class

ScrollBarActiveXControl class

Represents the ScrollBar control.

Inheritance: ScrollBarActiveXControlSpinButtonActiveXControl

The ScrollBarActiveXControl type exposes the following members:

Properties

PropertyDescription
workbook
typeGets 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
minGets and sets the minimum acceptable value.
maxGets and sets the maximum acceptable value.
positionGets and sets the value.
small_changeGets and sets the amount by which the Position property changes
orientationGets and sets whether the SpinButton or ScrollBar is oriented vertically or horizontally.
large_changeGets and sets the amount by which the Position property changes

Example

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")

See Also