设置或返回 PpTextLevelEffect 类型常数,该常数表示指定形状中的文本是否按第一级段落、第二级段落或其他级段落(最多为第五级段落)动画显示。可读写。
PpTextLevelEffect 可以是下列 PpTextLevelEffect 类型常数之一。 |
ppAnimateByAllLevels |
ppAnimateByFifthLevel |
ppAnimateByFirstLevel |
ppAnimateByFourthLevel |
ppAnimateBySecondLevel |
ppAnimateByThirdLevel |
ppAnimateLevelMixed |
ppAnimateLevelNone |
expression.TextLevelEffect
expression 必选。该表达式返回“应用于”列表中的对象之一。
要使 TextLevelEffect 属性设置产生效果,必须将 Animate 属性设为 True。
本示例在当前演示文稿中添加一个标题幻灯片和标题文本,并设置该标题逐字母创建。
With ActivePresentation.Slides.Add(1, ppLayoutTitleOnly).Shapes(1)
.TextFrame.TextRange.Text = "Sample title"
With .AnimationSettings
.Animate = True
.TextLevelEffect = ppAnimateByFirstLevel
.TextUnitEffect = ppAnimateByCharacter
.EntryEffect = ppEffectFlyFromLeft
End With
End With