AddEffect
Inhalt
[
Ausblenden
]AddEffect(IShape, EffectType, EffectSubtype, EffectTriggerType)
Fügen Sie einen neuen Effekt am Ende der Sequenz hinzu.
public IEffect AddEffect(IShape shape, EffectType effectType, EffectSubtype subtype,
EffectTriggerType triggerType)
Parameter | Typ | Beschreibung |
---|---|---|
shape | IShape | Shape-Objekt IShape zum Hinzufügen eines Effekts |
effectType | EffectType | Typ eines Animationseffekts EffectType |
subtype | EffectSubtype | Subtypen des Animationseffekts EffectSubtype |
triggerType | EffectTriggerType | Auslösertype des Effekts EffectTriggerType |
Rückgabewert
Neues Effekt-Objekt IEffect
Siehe Auch
- Schnittstelle IEffect
- Schnittstelle IShape
- Enum EffectType
- Enum EffectSubtype
- Enum EffectTriggerType
- Klasse Sequence
- Namespace Aspose.Slides.Animation
- Assembly Aspose.Slides
AddEffect(IParagraph, EffectType, EffectSubtype, EffectTriggerType)
Fügen Sie einen neuen Animationseffekt für den Absatz am Ende der Sequenz hinzu.
public IEffect AddEffect(IParagraph paragraph, EffectType effectType, EffectSubtype subtype,
EffectTriggerType triggerType)
Parameter | Typ | Beschreibung |
---|---|---|
paragraph | IParagraph | Absatzobjekt IParagraph |
effectType | EffectType | Typ eines Animationseffekts EffectType |
subtype | EffectSubtype | Subtypen des Animationseffekts EffectSubtype |
triggerType | EffectTriggerType | Auslösertype des Effekts EffectTriggerType |
Rückgabewert
Neues Effekt-Objekt IEffect
Beispiele
[C#]
using(Presentation presentation = new Presentation(path + "input.pptx"))
{
// Wählen Sie den Absatz aus, um den Effekt hinzuzufügen
IAutoShape autoShape = (IAutoShape)presentation.Slides[0].Shapes[0];
IParagraph paragraph = autoShape.TextFrame.Paragraphs[0];
// Fügen Sie den Fly-Animationseffekt zum ausgewählten Absatz hinzu
IEffect effect = presentation.Slides[0].Timeline.MainSequence.AddEffect(
paragraph, EffectType.Fly, EffectSubtype.Left, EffectTriggerType.OnClick);
}
Siehe Auch
- Schnittstelle IEffect
- Schnittstelle IParagraph
- Enum EffectType
- Enum EffectSubtype
- Enum EffectTriggerType
- Klasse Sequence
- Namespace Aspose.Slides.Animation
- Assembly Aspose.Slides
AddEffect(IChart, EffectChartMajorGroupingType, int, EffectType, EffectSubtype, EffectTriggerType)
Fügt den neuen Diagramm-Animationseffekt für Kategorie oder Serie am Ende der Sequenz hinzu.
public IEffect AddEffect(IChart chart, EffectChartMajorGroupingType type, int index,
EffectType effectType, EffectSubtype subtype, EffectTriggerType triggerType)
Parameter | Typ | Beschreibung |
---|---|---|
chart | IChart | Diagramm-Objekt IChart |
type | EffectChartMajorGroupingType | Typ eines Animationseffekts EffectChartMinorGroupingType |
index | Int32 | Index Int32 |
effectType | EffectType | Typ eines Animationseffekts EffectType |
subtype | EffectSubtype | Subtypen des Animationseffekts EffectSubtype |
triggerType | EffectTriggerType | Auslösertype des Effekts EffectTriggerType |
Rückgabewert
Neues Effekt-Objekt IEffect
Siehe Auch
- Schnittstelle IEffect
- Schnittstelle IChart
- Enum EffectChartMajorGroupingType
- Enum EffectType
- Enum EffectSubtype
- Enum EffectTriggerType
- Klasse Sequence
- Namespace Aspose.Slides.Animation
- Assembly Aspose.Slides
AddEffect(IChart, EffectChartMinorGroupingType, int, int, EffectType, EffectSubtype, EffectTriggerType)
Fügt den neuen Diagramm-Animationseffekt für Elemente in Kategorie oder Serie am Ende der Sequenz hinzu.
public IEffect AddEffect(IChart chart, EffectChartMinorGroupingType type, int seriesIndex,
int categoriesIndex, EffectType effectType, EffectSubtype subtype,
EffectTriggerType triggerType)
Parameter | Typ | Beschreibung |
---|---|---|
chart | IChart | Diagramm-Objekt IChart |
type | EffectChartMinorGroupingType | Typ eines Animationseffekts EffectChartMinorGroupingType |
seriesIndex | Int32 | Index der Diagrammserie Int32 |
categoriesIndex | Int32 | Index der Kategorie Int32 |
effectType | EffectType | Typ eines Animationseffekts EffectType |
subtype | EffectSubtype | Subtypen des Animationseffekts EffectSubtype |
triggerType | EffectTriggerType | Auslösertype des Effekts EffectTriggerType |
Rückgabewert
Neues Effekt-Objekt IEffect
Siehe Auch
- Schnittstelle IEffect
- Schnittstelle IChart
- Enum EffectChartMinorGroupingType
- Enum EffectType
- Enum EffectSubtype
- Enum EffectTriggerType
- Klasse Sequence
- Namespace Aspose.Slides.Animation
- Assembly Aspose.Slides