IGradientStopCollection

IGradientStopCollection

Overview

IGradientStopCollection is a interface in Aspose.Slides FOSS for .NET.

Represents a collection of gradient stops.

This interface provides 8 methods for working with IGradientStopCollection objects in .NET programs. Available methods include: Add, Clear, Insert, RemoveAt. All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package. Properties: AsICollection, AsIEnumerable, Count.

Properties

NameTypeAccessDescription
AsICollectionIList<IGradientStop>ReadGets all gradient stops as a list.
AsIEnumerableIEnumerable<IGradientStop>ReadGets an enumerable view of the gradient stops.
CountintReadGets the number of gradient stops in the collection.

Methods

SignatureDescription
Add(position: float, color: Color)Adds a gradient stop with the specified position and RGB color.
Add(position: float, presetColor: PresetColor)Adds a gradient stop with the specified position and preset color.
Add(position: float, schemeColor: SchemeColor)Adds a gradient stop with the specified position and scheme color.
Insert(index: int, position: float, color: Color)Inserts a gradient stop at the specified index with an RGB color.
Insert(index: int, position: float, presetColor: PresetColor)Inserts a gradient stop at the specified index with a preset color.
Insert(index: int, position: float, schemeColor: SchemeColor)Inserts a gradient stop at the specified index with a scheme color.
RemoveAt(index: int)Removes the gradient stop at the specified index.
Clear()Removes all gradient stops from the collection.

See Also