skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GradientStopCollection

Represents a collection of gradient stops that define color transitions in a gradient.

Inheritance
System.Object
GradientStopCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.ColorSpaces
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

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

Constructors

GradientStopCollection()

Initializes a new instance of the GradientStopCollection class.

Declaration
public GradientStopCollection()

Properties

Count

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

Declaration
public int Count { get; }
Property Value
System.Int32

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

Implements
System.Collections.Generic.ICollection<T>.Count

IsReadOnly

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

Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean

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

Implements
System.Collections.Generic.ICollection<T>.IsReadOnly

Item[Int32]

Gets or sets the GradientStop at the specified index.

Declaration
public GradientStop this[int index] { get; set; }
Parameters
System.Int32 index

Property Value
GradientStop

The gradient stop at the specified index.

Implements
System.Collections.Generic.IList<T>.Item[System.Int32]

Methods

Add(GradientStop)

Adds the specified item.

Declaration
public void Add(GradientStop item)
Parameters
GradientStop item

The gradient stop to add to the collection.

Implements
System.Collections.Generic.ICollection<T>.Add(T)

Clear()

Removes all items from the System.Collections.Generic.ICollection<T>.

Declaration
public void Clear()
Implements
System.Collections.Generic.ICollection<T>.Clear()
Exceptions
System.NotSupportedException

The System.Collections.Generic.ICollection<T> is read-only.

Contains(GradientStop)

Determines whether [contains] [the specified item].

Declaration
public bool Contains(GradientStop item)
Parameters
GradientStop item

The gradient stop to locate in the collection.

Returns
System.Boolean

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

Implements
System.Collections.Generic.ICollection<T>.Contains(T)

CopyTo(GradientStop[], Int32)

Copies to.

Declaration
public void CopyTo(GradientStop[] array, int arrayIndex)
Parameters
GradientStop[] array

The destination array to copy gradient stops to.

System.Int32 arrayIndex

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

Implements
System.Collections.Generic.ICollection<T>.CopyTo(T[], System.Int32)

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<GradientStop> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<GradientStop>

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

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

IndexOf(GradientStop)

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

Declaration
public int IndexOf(GradientStop item)
Parameters
GradientStop item

The gradient stop to locate in the collection.

Returns
System.Int32

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

Implements
System.Collections.Generic.IList<T>.IndexOf(T)

Insert(Int32, GradientStop)

Inserts a gradient stop at the specified index.

Declaration
public void Insert(int index, GradientStop item)
Parameters
System.Int32 index

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

GradientStop item

The gradient stop to insert into the collection.

Implements
System.Collections.Generic.IList<T>.Insert(System.Int32, T)

Remove(GradientStop)

Removes the specified item.

Declaration
public bool Remove(GradientStop item)
Parameters
GradientStop item

The gradient stop to remove from the collection.

Returns
System.Boolean

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

Implements
System.Collections.Generic.ICollection<T>.Remove(T)

RemoveAt(Int32)

Removes the System.Collections.Generic.IList<T> item at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
System.Int32 index

The zero-based index of the item to remove.

Implements
System.Collections.Generic.IList<T>.RemoveAt(System.Int32)
Exceptions
System.ArgumentOutOfRangeException

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

System.NotSupportedException

The System.Collections.Generic.IList<T> is read-only.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.