add_active_x_control方法

add_active_x_control(self, type, top_row, top, left_column, left, width, height)

创建一个 Activex 控件。

返回


def add_active_x_control(self, type, top_row, top, left_column, left, width, height):
    ...
范围类型描述
typeaspose.cells.drawing.activexcontrols.ControlType控件的类型。
top_rowint左上行索引。
topint表示 Shape 距离其左行的垂直偏移量,以像素为单位。
left_columnint左上角的列索引。
leftint表示 Shape 距离其左列的水平偏移量,以像素为单位。
widthint表示Shape的宽度,以像素为单位。
heightint表示Shape的高度,以像素为单位。

例子

from aspose.cells.drawing.activexcontrols import ControlType

# add an ActiveX control
activeXControl = shapes.add_active_x_control(ControlType.CHECK_BOX, 1, 0, 1, 0, 100, 50)

也可以看看