AddEffect

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)
ParameterTypBeschreibung
shapeIShapeShape-Objekt IShape zum Hinzufügen eines Effekts
effectTypeEffectTypeArt eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertyp des Effekts EffectTriggerType

Rückgabewert

Neues Effektobjekt IEffect

Siehe auch


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)
ParameterTypBeschreibung
paragraphIParagraphAbsatzobjekt IParagraph
effectTypeEffectTypeArt eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertyp des Effekts EffectTriggerType

Rückgabewert

Neues Effektobjekt 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


AddEffect(IChart, EffectChartMajorGroupingType, int, EffectType, EffectSubtype, EffectTriggerType)

Fügt den neuen Chart-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)
ParameterTypBeschreibung
chartIChartChart-Objekt IChart
typeEffectChartMajorGroupingTypeArt eines Animationseffekts EffectChartMinorGroupingType
indexInt32Index Int32
effectTypeEffectTypeArt eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertyp des Effekts EffectTriggerType

Rückgabewert

Neues Effektobjekt IEffect

Siehe auch


AddEffect(IChart, EffectChartMinorGroupingType, int, int, EffectType, EffectSubtype, EffectTriggerType)

Fügt den neuen Chart-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)
ParameterTypBeschreibung
chartIChartChart-Objekt IChart
typeEffectChartMinorGroupingTypeArt eines Animationseffekts EffectChartMinorGroupingType
seriesIndexInt32Index der Chart-Serie Int32
categoriesIndexInt32Index der Kategorie Int32
effectTypeEffectTypeArt eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertyp des Effekts EffectTriggerType

Rückgabewert

Neues Effektobjekt IEffect

Siehe auch