add_group_box方法

add_group_box(self, upper_left_row, top, upper_left_column, left, height, width)

将 GroupBox 添加到工作表。

返回

GroupBox 对象。


def add_group_box(self, upper_left_row, top, upper_left_column, left, height, width):
    ...
范围类型描述
upper_left_rowint左上行索引。
topint表示GroupBox相对于其左行的垂直偏移量,以像素为单位。
upper_left_columnint左上角的列索引。
leftint表示GroupBox相对于其左列的水平偏移量,以像素为单位。
heightint表示GroupBox的高度,单位为像素。
widthint表示GroupBox的宽度,单位为像素。

例子


# add a group box
groupBox = shapes.add_group_box(1, 0, 1, 0, 100, 50)

也可以看看