New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public class GradientStopCollection : IList<GradientStop>, ICollection<GradientStop>, IEnumerable<GradientStop>, IEnumerable

Inheritance: objectGradientStopCollection

Implements: ICollection<GradientStop>IEnumerableIEnumerable<GradientStop>IList<GradientStop>

Constructors

Creates an empty collection of gradient stops.

C#
public GradientStopCollection()

Methods

Adds the specified item.

C#
public void Add(GradientStop item)
Parameters:itemGradientStop

The gradient stop to add to the collection.

Implements: ICollection<GradientStop>.Add(GradientStop)

Removes all items from the ICollection<T>.

C#
public void Clear()
Exceptions:

NotSupportedException

The ICollection<T> is read-only.

Implements: ICollection<GradientStop>.Clear()

Determines whether [contains] [the specified item].

C#
public bool Contains(GradientStop item)
Parameters:itemGradientStop

The gradient stop to locate in the collection.

Returns:

bool

True if the gradient stop is found in the collection; otherwise, false.

Implements: ICollection<GradientStop>.Contains(GradientStop)

Copies to.

C#
public void CopyTo(GradientStop[] array, int arrayIndex)
Parameters:arrayGradientStop[]

The destination array to copy gradient stops to.

arrayIndexint

The zero-based index in the destination array at which copying begins.

Implements: ICollection<GradientStop>.CopyTo(GradientStop[], int)

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<GradientStop> GetEnumerator()
Returns:

IEnumerator<GradientStop>

A IEnumerator<T> that can be used to iterate through the collection.

Implements: IEnumerable<GradientStop>.GetEnumerator()

Determines the index of a specific gradient stop in the collection.

C#
public int IndexOf(GradientStop item)
Parameters:itemGradientStop

The gradient stop to locate in the collection.

Returns:

int

The zero-based index of the first occurrence of the gradient stop within the collection, or -1 if not found.

Implements: IList<GradientStop>.IndexOf(GradientStop)

Inserts a gradient stop at the specified index.

C#
public void Insert(int index, GradientStop item)
Parameters:indexint

The zero-based index at which to insert the gradient stop.

itemGradientStop

The gradient stop to insert into the collection.

Implements: IList<GradientStop>.Insert(int, GradientStop)

Removes the specified item.

C#
public bool Remove(GradientStop item)
Parameters:itemGradientStop

The gradient stop to remove from the collection.

Returns:

bool

True if the gradient stop was successfully removed; otherwise, false.

Implements: ICollection<GradientStop>.Remove(GradientStop)

Removes the IList<T> item at the specified index.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based index of the item to remove.

Exceptions:

ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.

Implements: IList<GradientStop>.RemoveAt(int)

Properties

Gets the number of elements contained in the ICollection<T>.

C#
public int Count { get; }
Property Value:

The number of elements contained in the ICollection<T>.

Implements: ICollection<GradientStop>.Count

Gets a value indicating whether the ICollection<T> is read-only.

C#
public bool IsReadOnly { get; }
Property Value:

true if the ICollection<T> is read-only; otherwise, false.

Implements: ICollection<GradientStop>.IsReadOnly

Gets or sets the GradientStop at the specified index.

C#
public GradientStop this[int index] { get; set; }
Parameters:indexintProperty Value:

The gradient stop at the specified index.

Implements: IList<GradientStop>.this[int]