GradientStopCollection

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

NameTypeAccessDescription
AsICollectionIList<IGradientStop>ReadExposes the stops as an IList
AsIEnumerableIEnumerable<IGradientStop>ReadExposes the stops as an IEnumerable
CountintReadGets the number of gradient stops in the collection

Methods

SignatureDescription
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

See Also