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

AnimationSettings.TextUnitEffect 属性 (PowerPoint)AnimationSettings.TextUnitEffect Property (PowerPoint)

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

指示指定形状中的文本是按段落、按字还是按字母显示动画效果。可读/写。Indicates whether the text in the specified shape is animated paragraph by paragraph, word by word, or letter by letter. Read/write.

语法Syntax

表达式TextUnitEffectexpression. TextUnitEffect

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

返回值Return Value

PpTextUnitEffectPpTextUnitEffect

注解Remarks

TextUnitEffect属性的值可以是其中一个PpTextUnitEffect常量。The value of the TextUnitEffect property can be one of these PpTextUnitEffect constants.

|| |:-----| |ppAnimateByCharacterppAnimateByCharacter| |ppAnimateByParagraphppAnimateByParagraph| |ppAnimateByWordppAnimateByWord| |ppAnimateUnitMixedppAnimateUnitMixed| TextUnitEffect属性设置才会生效,指定形状的TextLevelEffect属性值必须为不是ppAnimateLevelNoneppAnimateByAllLevels动画属性必须设置为TrueFor the TextUnitEffect property setting to take effect, the TextLevelEffect property for the specified shape must have a value other than ppAnimateLevelNone or ppAnimateByAllLevels, and the Animate property must be set to True.

示例Example

本示例在当前演示文稿中添加标题幻灯片及标题文本,并将该标题的字母设置为逐个显示。This example adds a title slide and title text to the active presentation and sets the title to be built letter by letter.

With ActivePresentation.Slides.Add(Index:=1, _
    Layout:=ppLayoutTitleOnly).Shapes(1)

    .TextFrame.TextRange.Text = "Sample title"
    With .AnimationSettings
        .Animate = True
        .TextLevelEffect = ppAnimateByFirstLevel
        .TextUnitEffect = ppAnimateByCharacter
        .EntryEffect = ppEffectFlyFromLeft
    End With

End With

另请参阅See also

概念Concepts

AnimationSettings 对象AnimationSettings Object

© 2018 Microsoft