Class Sequence
Represents a sequence of animation effects. The main sequence contains effects triggered by slide clicks; interactive sequences are triggered by clicking a specific shape.
Maps to the OOXML p:seq element within p:timing.
Implements
Inherited Members
Namespace: DRIT.Presentation.Animation
Assembly: DRIT.Presentation.dll
Syntax
public class Sequence : ISequence
Constructors
Sequence()
Initializes a new instance of the sequence class.
Declaration
public Sequence()
Sequence(IEnumerable<IEffect>)
Initializes a new instance of the sequence class.
Declaration
public Sequence(IEnumerable<IEffect> effects)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IEffect> | effects | The animation effects to include in the sequence. |
Properties
AsIEnumerable
Gets the collection of as i enumerable associated with this object.
Declaration
public IEnumerable AsIEnumerable { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable |
Count
Returns the number of effects in a sequence.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Returns an effect at the specified index.
Declaration
public IEffect this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| IEffect | The get value produced by the operation. |
TriggerShape
Gets or sets the trigger shape associated with this object.
Declaration
public IShape TriggerShape { get; set; }
Property Value
| Type | Description |
|---|---|
| IShape |
Methods
Add(IEffect)
Adds an effect to the end of this sequence.
Declaration
public void Add(IEffect effect)
Parameters
| Type | Name | Description |
|---|---|---|
| IEffect | effect |
Clear()
Removes all effects from this sequence.
Declaration
public void Clear()
Insert(int, IEffect)
Inserts an effect at the specified index.
Declaration
public void Insert(int index, IEffect effect)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | |
| IEffect | effect |
Remove(IEffect)
Removes the first occurrence of the specified effect.
Declaration
public bool Remove(IEffect effect)
Parameters
| Type | Name | Description |
|---|---|---|
| IEffect | effect |
Returns
| Type | Description |
|---|---|
| bool |
RemoveAt(int)
Removes the effect at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |