add_shape_in_chart方法
内容
[
隐藏
]add_shape_in_chart(type, placement, left, top, right, bottom)
添加图形到图表。所有单位是图表面积的 1/4000。
def add_shape_in_chart(self, type, placement, left, top, right, bottom):
...
范围 | 类型 | 描述 |
---|---|---|
type | MsoDrawingType | 绘图类型。 |
placement | PlacementType | 展示位置类型。 |
left | int | 以 1/4000 图表区域宽度为单位。 |
top | int | 以 1/4000 图表区域高度为单位。 |
right | int | 以 1/4000 图表区域宽度为单位。 |
bottom | int | 以 1/4000 图表区域高度为单位。 |
add_shape_in_chart(type, placement, left, top, right, bottom, image_data)
添加图形到图表。所有单位是图表面积的 1/4000。
def add_shape_in_chart(self, type, placement, left, top, right, bottom, image_data):
...
范围 | 类型 | 描述 |
---|---|---|
type | MsoDrawingType | 绘图类型。 |
placement | PlacementType | 展示位置类型。 |
left | int | 以 1/4000 图表区域宽度为单位。 |
top | int | 以 1/4000 图表区域高度为单位。 |
right | int | 以 1/4000 图表区域宽度为单位。 |
bottom | int | 以 1/4000 图表区域高度为单位。 |
image_data | bytes | 如果形状不是图片或 ole 对象,imageData 应该为空。 |