Skip to content
本页内容

WarpFormat (属性)

返回或设置指定文本框的弯曲类型。可读/写 MsoWarpFormat

示例

python
#本示例显示活动工作表中第二个形状的文本框的弯曲类型是否为msoWarpFormat11
def test():
    textFrame = ActiveSheet.Shapes.Item(2).TextFrame2
    print(textFrame.WarpFormat == msoWarpFormat11)
python
#本示例将第一张工作表中第一个形状的文本框的弯曲类型设置为msoWarpFormat10
def test():
    Application.Worksheets.Item(1).Shapes.Item(1).TextFrame2.WarpFormat = msoWarpFormat10