AddEffect

Sequence.AddEffect method (1 of 4)

Add new effect to the end of sequence.

public IEffect AddEffect(IShape shape, EffectType effectType, EffectSubtype subtype, 
    EffectTriggerType triggerType)
Parameter Type Description
shape IShape Shape object IShape for adding an effect
effectType EffectType Type of an animation effect EffectType
subtype EffectSubtype Subtypes of animation effect EffectSubtype
triggerType EffectTriggerType Trigger type of effect EffectTriggerType

Return Value

New effect object IEffect

See Also


Sequence.AddEffect method (2 of 4)

Add new animation effect for paragraph to the end of sequence.

public IEffect AddEffect(IParagraph paragraph, EffectType effectType, EffectSubtype subtype, 
    EffectTriggerType triggerType)
Parameter Type Description
paragraph IParagraph Paragraph object IParagraph
effectType EffectType Type of an animation effect EffectType
subtype EffectSubtype Subtypes of animation effect EffectSubtype
triggerType EffectTriggerType Trigger type of effect EffectTriggerType

Return Value

New effect object IEffect

Examples

[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);
}

See Also


Sequence.AddEffect method (3 of 4)

Adds the new chart animation effect for category or series to the end of sequence.

public IEffect AddEffect(IChart chart, EffectChartMajorGroupingType type, int index, 
    EffectType effectType, EffectSubtype subtype, EffectTriggerType triggerType)
Parameter Type Description
chart IChart Chart object IChart
type EffectChartMajorGroupingType Type of an animation effect EffectChartMinorGroupingType
index Int32 Index Int32
effectType EffectType Type of an animation effect EffectType
subtype EffectSubtype Subtypes of animation effect EffectSubtype
triggerType EffectTriggerType Trigger type of effect EffectTriggerType

Return Value

New effect object IEffect

See Also


Sequence.AddEffect method (4 of 4)

Adds the new chart animation effect for elements in category or series to the end of sequence.

public IEffect AddEffect(IChart chart, EffectChartMinorGroupingType type, int seriesIndex, 
    int categoriesIndex, EffectType effectType, EffectSubtype subtype, 
    EffectTriggerType triggerType)
Parameter Type Description
chart IChart Chart object IChart
type EffectChartMinorGroupingType Type of an animation effect EffectChartMinorGroupingType
seriesIndex Int32 Index of chart series Int32
categoriesIndex Int32 Index of category Int32
effectType EffectType Type of an animation effect EffectType
subtype EffectSubtype Subtypes of animation effect EffectSubtype
triggerType EffectTriggerType Trigger type of effect EffectTriggerType

Return Value

New effect object IEffect

See Also