请参阅下面的示例代码,该代码用于创建MSO_SHAPE.ROUNDED_RECTANGLE。我想将曲线设置在圆角矩形内。
left = Inches(0.57) # 0.93" centers this overall set of shapes
top = Titleltop + Inches(0.57)
width = Inches(1.75)
height = Inches(5.6685629921)
shape = shapes.add_shape(MSO_SHAPE.ROUNDED_RECTANGLE, left, top, width, height)
shape.fill.background()
line = shape.line
line.color.rgb = RGBColor(0, 0, 0)