ISequenceAddEffect Method (IParagraph, EffectType, EffectSubtype, EffectTriggerType) |
Namespace: Aspose.Slides.Animation
IEffect AddEffect( IParagraph paragraph, EffectType effectType, EffectSubtype subtype, EffectTriggerType triggerType )
[C#] using(Presentation presentation = new Presentation(path + "input.pptx")) { // select paragraph to add effect IAutoShape autoShape = (IAutoShape)presentation.Slides[0].Shapes[0]; IParagraph paragraph = autoShape.TextFrame.Paragraphs[0]; // add Fly animation effect to selected paragraph IEffect effect = presentation.Slides[0].Timeline.MainSequence.AddEffect( paragraph, EffectType.Fly, EffectSubtype.Left, EffectTriggerType.OnClick); }