Share via


Sequence.ConvertToAnimateBackground Method

Determines whether the background will be animated separately from, or in addition to, its accompanying text. Returns an ColorEffect object representing the newly-modified animation effect.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function ConvertToAnimateBackground ( _
    Effect As Effect, _
    AnimateBackground As MsoTriState _
) As Effect
'Usage
Dim instance As Sequence
Dim Effect As Effect
Dim AnimateBackground As MsoTriState
Dim returnValue As Effect

returnValue = instance.ConvertToAnimateBackground(Effect, _
    AnimateBackground)
Effect ConvertToAnimateBackground(
    Effect Effect,
    MsoTriState AnimateBackground
)

Parameters

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Effect
Effect

Examples

This example creates a text effect for the first shape on the first slide in the active presentation, and animates the text in the shape separately from the background. This example assumes there is a shape on the first slide, and that the shape has text inside it.

Sub AnimateText()



    Dim timeMain As TimeLine

    Dim shpActive As Shape



    Set shpActive = ActivePresentation.Slides(1).Shapes(1)

    Set timeMain = ActivePresentation.Slides(1).TimeLine



    ' Add a blast effect to the text, and animate the text separately

    ' from the background.

    timeMain.MainSequence.ConvertToAnimateBackground_

        Effect:=timeMain.MainSequence.AddEffect(Shape:=shpActive, _

            effectid:=msoAnimEffectBlast), _

        AnimateBackGround:=msoFalse



End Sub

See Also

Reference

Sequence Interface

Sequence Members

Microsoft.Office.Interop.PowerPoint Namespace