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.
This class provides 9 methods for working with GradientStopCollection objects in .NET programs.
Available methods include: Add, Clear, GetEnumerator, Insert, RemoveAt.
All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AsICollection, AsIEnumerable, AsIPresentationComponent, Count, Presentation, Slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
AsICollection | IList<IGradientStop> | Read | Gets the as i collection. |
AsIEnumerable | IEnumerable<IGradientStop> | Read | Gets the as i enumerable. |
Count | int | Read | Gets the count. |
AsIPresentationComponent | IPresentationComponent | Read | Gets the as i presentation component. |
Slide | IBaseSlide? | Read | Gets the slide. |
Presentation | IPresentation? | Read | Gets the presentation. |
Methods
| Signature | Description |
|---|---|
Add(position: float, color: Color) | Adds a gradient stop at the given position using a Color |
Add(position: float, presetColor: PresetColor) | Calls Add(position, presetColor) on this GradientStopCollection instance. |
Add(position: float, schemeColor: SchemeColor) | Calls Add(position, schemeColor) on this GradientStopCollection instance. |
Insert(index: int, position: float, color: Color) | Inserts a gradient stop at index with position and Color |
Insert(index: int, position: float, presetColor: PresetColor) | Calls Insert(index, position, presetColor) on this GradientStopCollection instance. |
Insert(index: int, position: float, schemeColor: SchemeColor) | Calls Insert(index, position, schemeColor) on this GradientStopCollection instance. |
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 |