AddEffect
Contents
[
Hide
]AddEffect(IShape, EffectType, EffectSubtype, EffectTriggerType)
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
- interface IEffect
- interface IShape
- enum EffectType
- enum EffectSubtype
- enum EffectTriggerType
- interface ISequence
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides
AddEffect(IParagraph, EffectType, EffectSubtype, EffectTriggerType)
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
- interface IEffect
- interface IParagraph
- enum EffectType
- enum EffectSubtype
- enum EffectTriggerType
- interface ISequence
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides
AddEffect(IChart, EffectChartMajorGroupingType, int, EffectType, EffectSubtype, EffectTriggerType)
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
- interface IEffect
- interface IChart
- enum EffectChartMajorGroupingType
- enum EffectType
- enum EffectSubtype
- enum EffectTriggerType
- interface ISequence
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides
AddEffect(IChart, EffectChartMinorGroupingType, int, int, EffectType, EffectSubtype, EffectTriggerType)
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
- interface IEffect
- interface IChart
- enum EffectChartMinorGroupingType
- enum EffectType
- enum EffectSubtype
- enum EffectTriggerType
- interface ISequence
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides