SpinButtonActiveXControl类

SpinButtonActiveXControl类

表示 SpinButton 控件。

继承: SpinButtonActiveXControl

SpinButtonActiveXControl 类型公开以下成员:

属性

属性描述
workbook
type获取 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获取并设置可接受的最小值。
max获取并设置最大可接受值。
position获取并设置值。
small_change获取并设置 Position 属性的变化量
orientation获取并设置 SpinButton 或 ScrollBar 是垂直方向还是水平方向。

例子

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

也可以看看