Mutable list of gradient stops that define the color ramp for a gradient fill.
Definition
Namespace:Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class GradientStopCollection : IList<GradientStop>, ICollection<GradientStop>, IEnumerable<GradientStop>, IEnumerable
Inheritance: objectGradientStopCollection
Implements:
Constructors
Creates an empty collection of gradient stops.
public GradientStopCollection()
Methods
Adds the specified item.
public void Add(GradientStop item)
The gradient stop to add to the collection.
Implements:
Removes all items from the ICollection<T>.
Determines whether [contains] [the specified item].
public bool Contains(GradientStop item)
The gradient stop to locate in the collection.
Returns:True if the gradient stop is found in the collection; otherwise, false.
Implements:
Copies to.
public void CopyTo(GradientStop[] array, int arrayIndex)
The destination array to copy gradient stops to.
arrayIndexintThe zero-based index in the destination array at which copying begins.
Implements:
Returns an enumerator that iterates through the collection.
public IEnumerator<GradientStop> GetEnumerator()
A IEnumerator<T> that can be used to iterate through the collection.
Implements:
Determines the index of a specific gradient stop in the collection.
public int IndexOf(GradientStop item)
The gradient stop to locate in the collection.
Returns:The zero-based index of the first occurrence of the gradient stop within the collection, or -1 if not found.
Implements:
Inserts a gradient stop at the specified index.
public void Insert(int index, GradientStop item)
The zero-based index at which to insert the gradient stop.
itemGradientStopThe gradient stop to insert into the collection.
Implements:
Removes the specified item.
public bool Remove(GradientStop item)
The gradient stop to remove from the collection.
Returns:True if the gradient stop was successfully removed; otherwise, false.
Implements:
Properties
Gets the number of elements contained in the ICollection<T>.
public int Count { get; }
The number of elements contained in the ICollection<T>.
Implements:
Gets a value indicating whether the ICollection<T> is read-only.
public bool IsReadOnly { get; }
true if the ICollection<T> is read-only; otherwise, false.
Implements:
Gets or sets the GradientStop at the specified index.
public GradientStop this[int index] { get; set; }
The gradient stop at the specified index.
Implements: