add_arc方法

add_arc(upper_left_row, top, upper_left_column, left, height, width)

将 ArcShape 添加到工作表。

返回

一个 ArcShape 对象。

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

例子


# add a arc
arcShape = shapes.add_arc(1, 0, 1, 0, 100, 50)

也可以看看