TextEffect 属性(PowerPoint)ShapeRange.TextEffect property (PowerPoint)

返回一个 TextEffectFormat 对象,该对象包含指定形状的文本效果格式设置属性。Returns a TextEffectFormat object that contains text-effect formatting properties for the specified shape. 此为只读属性。Read-only.



_表达式_一个代表**ShapeRange** 对象的变量。expression A variable that represents a ShapeRange object.

返回值Return value



适用于代表艺术字的**ShapeRange** 对象。Applies to ShapeRange objects that represent WordArt.


以下示例中,如果 myDocument 的第三个形状为艺术字,则将它的字形设为加粗。This example sets the font style to bold for shape three on myDocument if the shape is WordArt.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(3)

    If .Type = msoTextEffect Then

        .TextEffect.FontBold = True

    End If

End With

另请参阅See also

绘图对象ShapeRange Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.