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
effectTypeEffectTypeTyp eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertype des Effekts EffectTriggerType

Rückgabewert

Neues Effekt-Objekt 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
effectTypeEffectTypeTyp eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslö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


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)
ParameterTypBeschreibung
chartIChartDiagramm-Objekt IChart
typeEffectChartMajorGroupingTypeTyp eines Animationseffekts EffectChartMinorGroupingType
indexInt32Index Int32
effectTypeEffectTypeTyp eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertype des Effekts EffectTriggerType

Rückgabewert

Neues Effekt-Objekt IEffect

Siehe Auch


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)
ParameterTypBeschreibung
chartIChartDiagramm-Objekt IChart
typeEffectChartMinorGroupingTypeTyp eines Animationseffekts EffectChartMinorGroupingType
seriesIndexInt32Index der Diagrammserie Int32
categoriesIndexInt32Index der Kategorie Int32
effectTypeEffectTypeTyp eines Animationseffekts EffectType
subtypeEffectSubtypeSubtypen des Animationseffekts EffectSubtype
triggerTypeEffectTriggerTypeAuslösertype des Effekts EffectTriggerType

Rückgabewert

Neues Effekt-Objekt IEffect

Siehe Auch