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
| Name | Type | Access | Description |
|---|---|---|---|
AsICollection | IList<IGradientStop> | Read | Gets all gradient stops as a list. |
AsIEnumerable | IEnumerable<IGradientStop> | Read | Gets an enumerable view of the gradient stops. |
Count | int | Read | Gets the number of gradient stops in the collection. |
Methods
| Signature | Description |
|---|---|
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. |