Skip to content
本页内容

TextEffectFormat (对象)

包含应用于艺术字对象的属性和方法。

说明

使用 TextEffect 属性可返回一个 TextEffectFormat 对象。

示例

python
#下例为第一张工作表上的形状一设置字体名称及格式。要运行本示例,形状一必须是艺术字对象
def test():
    worksheet = Application.Worksheets.Item(1)
    TextEffect = worksheet.Shapes(1).TextEffect
    TextEffect.FontName = "Courier New"
    TextEffect.FontBold = True
    TextEffect.FontItalic = True
python
#此示例显示活动工作表的第三个艺术字的字号
def test():
    shape = ActiveSheet.Shapes.Item(3)
    print(shape.TextEffect.FontSize)