add_oval方法
add_oval(self, upper_left_row, top, upper_left_column, left, height, width)
在工作表中添加一个椭圆。
返回
椭圆形物体。
def add_oval(self, upper_left_row, top, upper_left_column, left, height, width):
...
范围 | 类型 | 描述 |
---|---|---|
upper_left_row | int | 左上行索引。 |
top | int | 表示椭圆距其左行的垂直偏移量,以像素为单位。 |
upper_left_column | int | 左上角的列索引。 |
left | int | 表示椭圆距其左列的水平偏移量,以像素为单位。 |
height | int | 表示椭圆的高度,以像素为单位。 |
width | int | 表示椭圆的宽度,以像素为单位。 |
例子
# add a oval
oval = shapes.add_oval(1, 0, 1, 0, 50, 50)