ScrollBarActiveXControl class

ScrollBarActiveXControl class

Represents the ScrollBar control.

Inheritance: ScrollBarActiveXControlSpinButtonActiveXControlActiveXControlActiveXControlBase

The ScrollBarActiveXControl type exposes the following members:

Properties

PropertyDescription
workbookGets the ActiveXControlBase.workbook object.
typeGets the type of the ActiveX control.
widthGets and sets the width of the control in unit of points.
heightGets and sets the height of the control in unit of points.
mouse_iconGets and sets a custom icon to display as the mouse pointer for the control.
mouse_pointerGets and sets the type of icon displayed as the mouse pointer for the control.
fore_ole_colorGets and sets the ole color of the foreground.
back_ole_colorGets and sets the ole color of the background.
is_visibleIndicates whether this control is visible.
shadowIndicates whether to show a shadow.
linked_cellGets and sets the linked cell.
list_fill_rangeGets and sets the list fill range.
dataGets and sets the binary data of the control.
is_enabledIndicates whether the control can receive the focus and respond to user-generated events.
is_lockedIndicates whether data in the control is locked for editing.
is_transparentIndicates whether the control is transparent.
is_auto_sizeIndicates whether the control will automatically resize to display its entire contents.
ime_modeGets and sets the default run-time mode of the Input Method Editor for the control as it receives focus.
fontRepresents the font of the control.
text_alignRepresents how to align the text used by the control.
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