add方法

add(upper_left_row, upper_left_column, height, width)

向集合中添加一个文本框。

返回

TextBox 对象索引。

def add(self, upper_left_row, upper_left_column, height, width):
    ...
范围 类型 描述
upper_left_row int 左上行索引。
upper_left_column int 左上列索引。
height int 文本框的高度,以像素为单位。
width int 文本框的宽度,以像素为单位。

例子


# add a TextBox
index2 = textBoxCollection.add(1, 1, 50, 100)

也可以看看