Sequence
Overview
Sequence is a class in Aspose.Slides FOSS for Python.
Inherits from: ISequence.
Represents sequence (collection of effects).
This class provides 8 methods for working with Sequence objects in Python.
Available methods include: add_effect, clear, get_count, get_effects_by_paragraph, get_effects_by_shape, remove, remove_at, remove_by_shape.
Properties: as_i_enumerable, count, trigger_shape.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the count. |
trigger_shape | IShape | Read | Gets the trigger shape. |
as_i_enumerable | Any | Read | Gets the as i enumerable. |
Methods
| Signature | Description |
|---|---|
add_effect(shape, effect_type, subtype, trigger_type) → IEffect | Adds an animation effect to a chart series/category identified by series and category indexes with specified effect settings |
add_effect(paragraph, effect_type, subtype, trigger_type) → IEffect | Adds an animation effect targeting a specific paragraph with specified effect settings. |
add_effect(chart, type, index, effect_type, subtype, trigger_type) → IEffect | Adds an animation effect targeting a chart element at the given index. |
add_effect(chart, type, series_index, categories_index, effect_type, subtype, trigger_type) → IEffect | Adds an animation effect targeting a specific chart series and category combination. |
add_effect() → IEffect | Add an animation effect to the sequence. |
remove(item) | Deletes the specified effect or item from the animation sequence |
remove_at(index) | Removes the animation effect at the specified index from the sequence. |
clear() | Removes all animation effects from the sequence. |
remove_by_shape(shape) | Deletes all effects that target the provided shape |
get_effects_by_shape(shape) → list[IEffect] | Returns a list of effects applied to the given shape |
get_effects_by_paragraph(paragraph) → list[IEffect] | Get effects that target a specific paragraph. |
get_count(shape) → int | Returns the number of animation effects targeting the given shape. |