AddEffect
内容
[
隐藏
]AddEffect(IShape, EffectType, EffectSubtype, EffectTriggerType)
在序列末尾添加新效果。
public IEffect AddEffect(IShape shape, EffectType effectType, EffectSubtype subtype,
EffectTriggerType triggerType)
参数 | 类型 | 描述 |
---|---|---|
shape | IShape | 要添加效果的形状对象 IShape |
effectType | EffectType | 动画效果的类型 EffectType |
subtype | EffectSubtype | 动画效果的子类型 EffectSubtype |
triggerType | EffectTriggerType | 效果的触发类型 EffectTriggerType |
返回值
新效果对象 IEffect
另请参阅
- 接口 IEffect
- 接口 IShape
- 枚举 EffectType
- 枚举 EffectSubtype
- 枚举 EffectTriggerType
- 接口 ISequence
- 命名空间 Aspose.Slides.Animation
- 程序集 Aspose.Slides
AddEffect(IParagraph, EffectType, EffectSubtype, EffectTriggerType)
在序列末尾为段落添加新动画效果。
public IEffect AddEffect(IParagraph paragraph, EffectType effectType, EffectSubtype subtype,
EffectTriggerType triggerType)
参数 | 类型 | 描述 |
---|---|---|
paragraph | IParagraph | 段落对象 IParagraph |
effectType | EffectType | 动画效果的类型 EffectType |
subtype | EffectSubtype | 动画效果的子类型 EffectSubtype |
triggerType | EffectTriggerType | 效果的触发类型 EffectTriggerType |
返回值
新效果对象 IEffect
示例
[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);
}
另请参阅
- 接口 IEffect
- 接口 IParagraph
- 枚举 EffectType
- 枚举 EffectSubtype
- 枚举 EffectTriggerType
- 接口 ISequence
- 命名空间 Aspose.Slides.Animation
- 程序集 Aspose.Slides
AddEffect(IChart, EffectChartMajorGroupingType, int, EffectType, EffectSubtype, EffectTriggerType)
为类别或系列在序列末尾添加新的图表动画效果。
public IEffect AddEffect(IChart chart, EffectChartMajorGroupingType type, int index,
EffectType effectType, EffectSubtype subtype, EffectTriggerType triggerType)
参数 | 类型 | 描述 |
---|---|---|
chart | IChart | 图表对象 IChart |
type | EffectChartMajorGroupingType | 动画效果的类型 EffectChartMinorGroupingType |
index | Int32 | Index Int32 |
effectType | EffectType | 动画效果的类型 EffectType |
subtype | EffectSubtype | 动画效果的子类型 EffectSubtype |
triggerType | EffectTriggerType | 效果的触发类型 EffectTriggerType |
返回值
新效果对象 IEffect
另请参阅
- 接口 IEffect
- 接口 IChart
- 枚举 EffectChartMajorGroupingType
- 枚举 EffectType
- 枚举 EffectSubtype
- 枚举 EffectTriggerType
- 接口 ISequence
- 命名空间 Aspose.Slides.Animation
- 程序集 Aspose.Slides
AddEffect(IChart, EffectChartMinorGroupingType, int, int, EffectType, EffectSubtype, EffectTriggerType)
为类别或系列中的元素在序列末尾添加新的图表动画效果。
public IEffect AddEffect(IChart chart, EffectChartMinorGroupingType type, int seriesIndex,
int categoriesIndex, EffectType effectType, EffectSubtype subtype,
EffectTriggerType triggerType)
参数 | 类型 | 描述 |
---|---|---|
chart | IChart | 图表对象 IChart |
type | EffectChartMinorGroupingType | 动画效果的类型 EffectChartMinorGroupingType |
seriesIndex | Int32 | 图表系列的索引 Int32 |
categoriesIndex | Int32 | 类别的索引 Int32 |
effectType | EffectType | 动画效果的类型 EffectType |
subtype | EffectSubtype | 动画效果的子类型 EffectSubtype |
triggerType | EffectTriggerType | 效果的触发类型 EffectTriggerType |
返回值
新效果对象 IEffect