Class AnimationEffect
Represents a single animation effect applied to a shape on a slide.
Inherited Members
Namespace: DRIT.Presentation.Animation
Assembly: DRIT.Presentation.dll
Syntax
public sealed class AnimationEffect
Properties
ChartElementIndex
Gets or sets the element index within the selected chart group.
Declaration
public int? ChartElementIndex { get; }
Property Value
| Type | Description |
|---|---|
| int? |
ChartGroupIndex
Gets or sets the major chart group index (series/category index).
Declaration
public int? ChartGroupIndex { get; }
Property Value
| Type | Description |
|---|---|
| int? |
ChartMajorGroupingType
Gets or sets chart-major grouping mode for chart effects.
Declaration
public EffectChartMajorGroupingType? ChartMajorGroupingType { get; }
Property Value
| Type | Description |
|---|---|
| EffectChartMajorGroupingType? |
ChartMinorGroupingType
Gets or sets chart-minor grouping mode for chart effects.
Declaration
public EffectChartMinorGroupingType? ChartMinorGroupingType { get; }
Property Value
| Type | Description |
|---|---|
| EffectChartMinorGroupingType? |
DelayMs
Gets or sets the delay before the animation starts (in milliseconds). Applies only when TriggerType is not OnClick. Default is 0.
Declaration
public int DelayMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DurationMs
Gets or sets the duration of the animation effect in milliseconds. Default is 500 ms.
Declaration
public int DurationMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
EffectSubtype
Gets the effect subtype used when authoring this effect.
Declaration
public EffectSubtype EffectSubtype { get; }
Property Value
| Type | Description |
|---|---|
| EffectSubtype |
EffectType
Gets the high-level effect type used when authoring this effect.
Declaration
public EffectType EffectType { get; }
Property Value
| Type | Description |
|---|---|
| EffectType |
MotionEffect
Gets the motion behavior attached to this effect, when the effect is a custom motion-path animation.
Declaration
public IMotionEffect MotionEffect { get; }
Property Value
| Type | Description |
|---|---|
| IMotionEffect |
PresetClass
Gets or sets the effect class (Entrance, Exit, or Emphasis).
Declaration
public EffectPresetClassType PresetClass { get; set; }
Property Value
| Type | Description |
|---|---|
| EffectPresetClassType |
PresetId
Gets or sets the preset animation identifier. Common values are defined in AnimationPresetId. PowerPoint interprets this number together with PresetClass to render the correct animation from its library.
Declaration
public int PresetId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RepeatUntilEndSlide
Gets or sets whether this effect repeats until the slide ends.
Declaration
public bool RepeatUntilEndSlide { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RepeatUntilNextClick
Gets or sets whether this effect repeats until the next click.
Declaration
public bool RepeatUntilNextClick { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Rewind
Gets or sets whether this effect rewinds (auto-reverses) after playback.
Declaration
public bool Rewind { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TargetChart
Gets the chart that this effect targets when the effect is chart-based.
Declaration
public PresentationChart TargetChart { get; }
Property Value
| Type | Description |
|---|---|
| PresentationChart |
TargetShape
Gets the shape that this effect targets.
Declaration
public AbstractShape TargetShape { get; }
Property Value
| Type | Description |
|---|---|
| AbstractShape |
TriggerType
Gets or sets when this effect starts relative to other effects on the slide.
Declaration
public EffectTriggerType TriggerType { get; set; }
Property Value
| Type | Description |
|---|---|
| EffectTriggerType |