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
另请参见
- interface IEffect
- interface IShape
- enum EffectType
- enum EffectSubtype
- enum EffectTriggerType
- interface ISequence
- namespace Aspose.Slides.Animation
- assembly 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);
}
另请参见
- 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)
为类别或系列的图表末尾添加新的动画效果。
public IEffect AddEffect(IChart chart, EffectChartMajorGroupingType type, int index,
EffectType effectType, EffectSubtype subtype, EffectTriggerType triggerType)
参数 | 类型 | 描述 |
---|---|---|
chart | IChart | 图表对象 IChart |
type | EffectChartMajorGroupingType | 动画效果的类型 EffectChartMinorGroupingType |
index | Int32 | Int32 索引 |
effectType | EffectType | 动画效果的类型 EffectType |
subtype | EffectSubtype | 动画效果的子类型 EffectSubtype |
triggerType | EffectTriggerType | 效果的触发类型 EffectTriggerType |
返回值
新效果对象 IEffect
另请参见
- 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)
为类别或系列中的元素末尾添加新的图表动画效果。
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
另请参见
- interface IEffect
- interface IChart
- enum EffectChartMinorGroupingType
- enum EffectType
- enum EffectSubtype
- enum EffectTriggerType
- interface ISequence
- namespace Aspose.Slides.Animation
- assembly Aspose.Slides