Share via


Sequence.Clone Method

Creates a copy of an ColorEffect object, and adds it to the Sequences collection at the specified index position.

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

Syntax

'Declaration
Function Clone ( _
    Effect As Effect, _
    Index As Integer _
) As Effect
'Usage
Dim instance As Sequence
Dim Effect As Effect
Dim Index As Integer
Dim returnValue As Effect

returnValue = instance.Clone(Effect, Index)
Effect Clone(
    Effect Effect,
    int Index
)

Parameters

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

Return Value

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

Examples

This example copies an animation effect. This example assumes an animation effect named "effDiamond" exists.

Sub CloneEffect()



    ActivePresentation.Slides(1).TimeLine.MainSequence _

        .CloneEffect:=effDiamond, Index:=-1



End Sub

See Also

Reference

Sequence Interface

Sequence Members

Microsoft.Office.Interop.PowerPoint Namespace