AddEffect

AddEffect(IShape, EffectType, EffectSubtype, EffectTriggerType)

Agrega un nuevo efecto al final de la secuencia.

public IEffect AddEffect(IShape shape, EffectType effectType, EffectSubtype subtype, 
    EffectTriggerType triggerType)
ParámetroTipoDescripción
shapeIShapeObjeto shape IShape para agregar un efecto
effectTypeEffectTypeTipo de un efecto de animación EffectType
subtypeEffectSubtypeSubtipos de efecto de animación EffectSubtype
triggerTypeEffectTriggerTypeTipo de activador del efecto EffectTriggerType

Valor de Retorno

Nuevo objeto efecto IEffect

Ver También


AddEffect(IParagraph, EffectType, EffectSubtype, EffectTriggerType)

Agrega un nuevo efecto de animación para el párrafo al final de la secuencia.

public IEffect AddEffect(IParagraph paragraph, EffectType effectType, EffectSubtype subtype, 
    EffectTriggerType triggerType)
ParámetroTipoDescripción
paragraphIParagraphObjeto párrafo IParagraph
effectTypeEffectTypeTipo de un efecto de animación EffectType
subtypeEffectSubtypeSubtipos de efecto de animación EffectSubtype
triggerTypeEffectTriggerTypeTipo de activador del efecto EffectTriggerType

Valor de Retorno

Nuevo objeto efecto IEffect

Ejemplos

[C#]
using(Presentation presentation = new Presentation(path + "input.pptx"))
{        
   // seleccionar párrafo para agregar efecto
   IAutoShape autoShape = (IAutoShape)presentation.Slides[0].Shapes[0];
   IParagraph paragraph = autoShape.TextFrame.Paragraphs[0];

   // agregar efecto de animación Fly al párrafo seleccionado
   IEffect effect = presentation.Slides[0].Timeline.MainSequence.AddEffect(
   paragraph, EffectType.Fly, EffectSubtype.Left, EffectTriggerType.OnClick);
}

Ver También


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

Agrega el nuevo efecto de animación de gráfico para categoría o serie al final de la secuencia.

public IEffect AddEffect(IChart chart, EffectChartMajorGroupingType type, int index, 
    EffectType effectType, EffectSubtype subtype, EffectTriggerType triggerType)
ParámetroTipoDescripción
chartIChartObjeto gráfico IChart
typeEffectChartMajorGroupingTypeTipo de un efecto de animación EffectChartMinorGroupingType
indexInt32Índice Int32
effectTypeEffectTypeTipo de un efecto de animación EffectType
subtypeEffectSubtypeSubtipos de efecto de animación EffectSubtype
triggerTypeEffectTriggerTypeTipo de activador del efecto EffectTriggerType

Valor de Retorno

Nuevo objeto efecto IEffect

Ver También


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

Agrega el nuevo efecto de animación de gráfico para elementos en categoría o serie al final de la secuencia.

public IEffect AddEffect(IChart chart, EffectChartMinorGroupingType type, int seriesIndex, 
    int categoriesIndex, EffectType effectType, EffectSubtype subtype, 
    EffectTriggerType triggerType)
ParámetroTipoDescripción
chartIChartObjeto gráfico IChart
typeEffectChartMinorGroupingTypeTipo de un efecto de animación EffectChartMinorGroupingType
seriesIndexInt32Índice de serie de gráfico Int32
categoriesIndexInt32Índice de categoría Int32
effectTypeEffectTypeTipo de un efecto de animación EffectType
subtypeEffectSubtypeSubtipos de efecto de animación EffectSubtype
triggerTypeEffectTriggerTypeTipo de activador del efecto EffectTriggerType

Valor de Retorno

Nuevo objeto efecto IEffect

Ver También