Table of contents
TOC
折叠目录
展开目录

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

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

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

语法Syntax

表达式TextEffectexpression. TextEffect

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

返回值Return Value

TextEffectFormatTextEffectFormat

注解Remarks

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

示例Example

本示例设置为上第三个形状加粗的字体样式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

概念Concepts

绘图对象ShapeRange Object

© 2018 Microsoft