AnimationSettings.TextLevelEffect 屬性 (PowerPoint)

會指出所指定圖案中的文字是否會依第一層段落、第二層段落,或其他層 (最高到第五層) 的段落來執行動畫。 讀取/寫入。

語法

expressionTextLevelEffect

表達 代表 AnimationSettings 物件的 變數。

傳回值

PpTextLevelEffect

註解

TextLevelEffect 屬性設定生效, 動畫 屬性必須設定為 True

TextLevelEffect 屬性的值可以是下列其中一個 PpTextLevelEffect 常數。

ppAnimateByAllLevels
ppAnimateByFifthLevel
ppAnimateByFirstLevel
ppAnimateByFourthLevel
ppAnimateBySecondLevel
ppAnimateByThirdLevel
ppAnimateLevelMixed
ppAnimateLevelNone

範例

這個範例會將標題投影片及標題文字新增至作用中的簡報,並且將標題的組成方式設定為一個字母接著一個字母。

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

另請參閱

AnimationSettings 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應