ClassGradientStopCollection
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
GradientStopCollection()
Creates an empty collection of gradient stops.
Declaration
public GradientStopCollection()
Properties
Count
Gets the number of elements contained in the ICollection<T>.
Declaration
public int Count { get; }
Property Value
The number of elements contained in the ICollection<T>.
Implements
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
true if the ICollection<T> is read-only; otherwise, false.
Implements
this[int]
Gets or sets the GradientStop at the specified index.
Declaration
public GradientStop this[int index] { get; set; }
Parameters
index
Property Value
The gradient stop at the specified index.
Implements
Methods
Add(GradientStop)
Adds the specified item.
Declaration
public void Add(GradientStop item)
Parameters
item
The gradient stop to add to the collection.
Implements
Clear()
Removes all items from the ICollection<T>.
Declaration
public void Clear()
Exceptions
The ICollection<T> is read-only.
Implements
Contains(GradientStop)
Determines whether [contains] [the specified item].
Declaration
public bool Contains(GradientStop item)
Parameters
item
The gradient stop to locate in the collection.
Returns
True if the gradient stop is found in the collection; otherwise, false.
Implements
CopyTo(GradientStop[], int)
Copies to.
Declaration
public void CopyTo(GradientStop[] array, int arrayIndex)
Parameters
array
The destination array to copy gradient stops to.
arrayIndex
The zero-based index in the destination array at which copying begins.
Implements
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<GradientStop> GetEnumerator()
Returns
A IEnumerator<T> that can be used to iterate through the collection.
Implements
IndexOf(GradientStop)
Determines the index of a specific gradient stop in the collection.
Declaration
public int IndexOf(GradientStop item)
Parameters
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
Insert(int, GradientStop)
Inserts a gradient stop at the specified index.
Declaration
public void Insert(int index, GradientStop item)
Parameters
index
The zero-based index at which to insert the gradient stop.
item
The gradient stop to insert into the collection.
Implements
Remove(GradientStop)
Removes the specified item.
Declaration
public bool Remove(GradientStop item)
Parameters
item
The gradient stop to remove from the collection.
Returns
True if the gradient stop was successfully removed; otherwise, false.
Implements
RemoveAt(int)
Removes the IList<T> item at the specified index.