SequenceAddEffect Method (IParagraph, EffectType, EffectSubtype, EffectTriggerType) |
Add new animation effect for paragraph to the end of sequence.
Namespace:
Aspose.Slides.Animation
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntaxpublic IEffect AddEffect(
IParagraph paragraph,
EffectType effectType,
EffectSubtype subtype,
EffectTriggerType triggerType
)
Public Function AddEffect (
paragraph As IParagraph,
effectType As EffectType,
subtype As EffectSubtype,
triggerType As EffectTriggerType
) As IEffect
public:
virtual IEffect^ AddEffect(
IParagraph^ paragraph,
EffectType effectType,
EffectSubtype subtype,
EffectTriggerType triggerType
) sealed
abstract AddEffect :
paragraph : IParagraph *
effectType : EffectType *
subtype : EffectSubtype *
triggerType : EffectTriggerType -> IEffect
override AddEffect :
paragraph : IParagraph *
effectType : EffectType *
subtype : EffectSubtype *
triggerType : EffectTriggerType -> IEffect
Parameters
- paragraph
- Type: Aspose.SlidesIParagraph
- effectType
- Type: Aspose.Slides.AnimationEffectType
- subtype
- Type: Aspose.Slides.AnimationEffectSubtype
- triggerType
- Type: Aspose.Slides.AnimationEffectTriggerType
Return Value
Type:
IEffectImplements
ISequenceAddEffect(IParagraph, EffectType, EffectSubtype, EffectTriggerType)
Examples[C#]
using(Presentation presentation = new Presentation(path + "input.pptx"))
{
IAutoShape autoShape = (IAutoShape)presentation.Slides[0].Shapes[0];
IParagraph paragraph = autoShape.TextFrame.Paragraphs[0];
IEffect effect = presentation.Slides[0].Timeline.MainSequence.AddEffect(
paragraph, EffectType.Fly, EffectSubtype.Left, EffectTriggerType.OnClick);
}
See Also