Partager via


Sequence.AddEffect Method

Returns an Effect object that represents a new animation effect added to a sequence of animation effects.

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

Syntax

'Declaration
Function AddEffect ( _
    Shape As Shape, _
    effectId As MsoAnimEffect, _
    Level As MsoAnimateByLevel, _
    trigger As MsoAnimTriggerType, _
    Index As Integer _
) As Effect
'Usage
Dim instance As Sequence
Dim Shape As Shape
Dim effectId As MsoAnimEffect
Dim Level As MsoAnimateByLevel
Dim trigger As MsoAnimTriggerType
Dim Index As Integer
Dim returnValue As Effect

returnValue = instance.AddEffect(Shape, _
    effectId, Level, trigger, Index)
Effect AddEffect(
    Shape Shape,
    MsoAnimEffect effectId,
    MsoAnimateByLevel Level,
    MsoAnimTriggerType trigger,
    int Index
)

Parameters

  • Index
    Type: System.Int32
    The position at which the effect will be placed in the collection of animation effects. The default value is -1 (added to the end).

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Effect

See Also

Reference

Sequence Interface

Sequence Members

Microsoft.Office.Interop.PowerPoint Namespace