GradientStopCollection
Overview
GradientStopCollection is a class in Aspose.Slides FOSS for .NET.
Inherits from: PVIObject, IGradientStopCollection, IEnumerable<IGradientStop>.
Manages a collection of <a:gs> child elements within an <a:gsLst> XML element. Each mutation persists changes by calling on the owning .
Properties
| Name | Type | Access | Description |
|---|---|---|---|
AsICollection | IList<IGradientStop> | Read | Exposes the stops as an IList |
AsIEnumerable | IEnumerable<IGradientStop> | Read | Exposes the stops as an IEnumerable |
Count | int | Read | Gets the number of gradient stops in the collection |
Methods
| Signature | Description |
|---|---|
Add(position: float, color: Color) | Adds a gradient stop at the given position using a Color |
Add(position: float, presetColor: PresetColor) | |
Add(position: float, schemeColor: SchemeColor) | |
Insert(index: int, position: float, color: Color) | Inserts a gradient stop at index with position and Color |
Insert(index: int, position: float, presetColor: PresetColor) | |
Insert(index: int, position: float, schemeColor: SchemeColor) | |
RemoveAt(index: int) | Removes the gradient stop at the specified index |
Clear() | Removes all gradient stops from the collection |
GetEnumerator() | Returns an enumerator for iterating gradient stops |