add_line方法
add_line(upper_left_row, top, upper_left_column, left, height, width)
将 LineShape 添加到工作表。
返回
一个线形对象。
def add_line(self, upper_left_row, top, upper_left_column, left, height, width):
...
范围 | 类型 | 描述 |
---|---|---|
upper_left_row | int | 左上行索引。 |
top | int | 表示 LineShape 从其左行的垂直偏移量,以像素为单位。 |
upper_left_column | int | 左上列索引。 |
left | int | 表示 LineShape 从其左列的水平偏移量,以像素为单位。 |
height | int | 表示 LineShape 的高度,以像素为单位。 |
width | int | 表示 LineShape 的宽度,以像素为单位。 |
例子
# add a line object
lineShape = shapes.add_line(1, 0, 1, 0, 100, 50)