Sequence.AddTriggerEffect Method
Adds a trigger effect to the animation in a Sequence object.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function AddTriggerEffect ( _
pShape As Shape, _
effectId As MsoAnimEffect, _
trigger As MsoAnimTriggerType, _
pTriggerShape As Shape, _
bookmark As String, _
Level As MsoAnimateByLevel _
) As Effect
'Usage
Dim instance As Sequence
Dim pShape As Shape
Dim effectId As MsoAnimEffect
Dim trigger As MsoAnimTriggerType
Dim pTriggerShape As Shape
Dim bookmark As String
Dim Level As MsoAnimateByLevel
Dim returnValue As Effect
returnValue = instance.AddTriggerEffect(pShape, _
effectId, trigger, pTriggerShape, _
bookmark, Level)
Effect AddTriggerEffect(
Shape pShape,
MsoAnimEffect effectId,
MsoAnimTriggerType trigger,
Shape pTriggerShape,
string bookmark,
MsoAnimateByLevel Level
)
Parameters
- pShape
Type: Microsoft.Office.Interop.PowerPoint.Shape
The Shape object with animation.
- effectId
Type: Microsoft.Office.Interop.PowerPoint.MsoAnimEffect
The type of animation.
- trigger
Type: Microsoft.Office.Interop.PowerPoint.MsoAnimTriggerType
The type of trigger effect to add.
- pTriggerShape
Type: Microsoft.Office.Interop.PowerPoint.Shape
The Shape object that represents the trigger.
- bookmark
Type: System.String
The bookmark.
- Level
Type: Microsoft.Office.Interop.PowerPoint.MsoAnimateByLevel
The level of animation.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.Effect