GradientStopCollection
Overview
GradientStopCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: PVIObject, ISlideComponent, IPresentationComponent, and 1 more.
Represnts a collection of gradient stops.
This class declares 10 methods for GradientStopCollection objects in Python programs.
Available methods include: __getitem__, __iter__, __len__, __setattr__, add, clear, insert, remove_at.
Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package.
Properties: as_i_collection, as_i_enumerable, as_i_presentation_component, presentation, slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
as_i_collection | list | Read | Gets the as i collection. |
as_i_enumerable | Any | Read | Gets the as i enumerable. |
as_i_presentation_component | IPresentationComponent | Read | Allows to get base IPresentationComponent interface. |
slide | IBaseSlide | Read | Gets the slide. |
presentation | IPresentation | Read | Gets the presentation. |
Methods
| Signature | Description |
|---|---|
__len__() → int | Calls len on this GradientStopCollection instance. |
__iter__() | Calls iter on this GradientStopCollection instance. |
add() → IGradientStop | Adds a new gradient stop and returns an IGradientStop instance |
insert() | Inserts a gradient stop into the collection |
remove_at(index) | Removes the gradient stop at the given index |
clear() | Removes all gradient stops from the collection |
__getitem__(index: int) → GradientStop | Calls getitem(index) on this GradientStopCollection instance. |
__setattr__(name: str, value) | Calls setattr(name, value) on this GradientStopCollection instance. |
add(position, color) → IGradientStop | Calls add(position, color) on this GradientStopCollection instance. |
insert(index, position, color) | Calls insert(index, position, color) on this GradientStopCollection instance. |