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.

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

NameTypeAccessDescription
AsICollectionIList<IGradientStop>ReadGets the as i collection.
AsIEnumerableIEnumerable<IGradientStop>ReadGets the as i enumerable.
CountintReadGets the count.
AsIPresentationComponentIPresentationComponentReadGets the as i presentation component.
SlideIBaseSlide?ReadGets the slide.
PresentationIPresentation?ReadGets the presentation.

Methods

SignatureDescription
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

See Also