GradientStopCollection

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

NameTypeAccessDescription
as_i_collectionlistReadGets the as i collection.
as_i_enumerableAnyReadGets the as i enumerable.
as_i_presentation_componentIPresentationComponentReadAllows to get base IPresentationComponent interface.
slideIBaseSlideReadGets the slide.
presentationIPresentationReadGets the presentation.

Methods

SignatureDescription
__len__() → intCalls len on this GradientStopCollection instance.
__iter__()Calls iter on this GradientStopCollection instance.
add() → IGradientStopAdds 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) → GradientStopCalls getitem(index) on this GradientStopCollection instance.
__setattr__(name: str, value)Calls setattr(name, value) on this GradientStopCollection instance.
add(position, color) → IGradientStopCalls add(position, color) on this GradientStopCollection instance.
insert(index, position, color)Calls insert(index, position, color) on this GradientStopCollection instance.

See Also

 English