skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ThemeSourceCollection

A collection that stores ThemeSource objects.

Inheritance
System.Object
System.Collections.CollectionBase
ThemeSourceCollection
Inherited Members
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
System.Collections.CollectionBase.OnClear()
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnValidate(System.Object)
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
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.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class ThemeSourceCollection : CollectionBase, IList, ICollection, IEnumerable

Constructors

ThemeSourceCollection(RadThemeManager)

Initializes a new instance of theThemeSourceCollection.

Declaration
public ThemeSourceCollection(RadThemeManager ownerManager)
Parameters
RadThemeManager ownerManager

Owner component

ThemeSourceCollection(ThemeSource[], RadThemeManager)

Initializes a new instance of the ThemeSourceCollection containing any array of ThemeSource objects.

Declaration
public ThemeSourceCollection(ThemeSource[] value, RadThemeManager ownerManager)
Parameters
ThemeSource[] value

A array of ThemeSource objects with which to intialize the collection

RadThemeManager ownerManager

Owner component

ThemeSourceCollection(ThemeSourceCollection, RadThemeManager)

Initializes a new instance of the ThemeSourceCollection based on another ThemeSourceCollection.

Declaration
public ThemeSourceCollection(ThemeSourceCollection value, RadThemeManager ownerManager)
Parameters
ThemeSourceCollection value

A ThemeSourceCollection from which the contents are copied

RadThemeManager ownerManager

Owner component

Fields

ThemeSourcesChanged

Declaration
public ThemeSourcesChangedDelegate ThemeSourcesChanged
Field Value
ThemeSourcesChangedDelegate

Properties

Item[Int32]

Represents the entry at the specified index of the ThemeSource.

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

The zero-based index of the entry to locate in the collection.

Property Value
ThemeSource

The entry at the specified index of the collection.

Exceptions
System.ArgumentOutOfRangeException

index is outside the valid range of indexes for the collection.

OwnerManager

Declaration
public RadThemeManager OwnerManager { get; }
Property Value
RadThemeManager

Methods

Add(ThemeSource)

Adds a ThemeSource with the specified value to the ThemeSourceCollection .

Declaration
public int Add(ThemeSource value)
Parameters
ThemeSource value

The ThemeSource to add.

Returns
System.Int32

The index at which the new element was inserted.

AddRange(ThemeSource[])

Copies the elements of an array to the end of the ThemeSourceCollection.

Declaration
public void AddRange(ThemeSource[] value)
Parameters
ThemeSource[] value

An array of type ThemeSource containing the objects to add to the collection.

AddRange(ThemeSourceCollection)

Adds the contents of another ThemeSourceCollection to the end of the collection.

Declaration
public void AddRange(ThemeSourceCollection value)
Parameters
ThemeSourceCollection value

A ThemeSourceCollection containing the objects to add to the collection.

Contains(ThemeSource)

Gets a value indicating whether the ThemeSourceCollection contains the specified ThemeSource.

Declaration
public bool Contains(ThemeSource value)
Parameters
ThemeSource value

The ThemeSource to locate.

Returns
System.Boolean

true if the ThemeSource is contained in the collection; otherwise, false.

CopyTo(ThemeSource[], Int32)

Copies the ThemeSourceCollection values to a one-dimensional System.Array instance at the specified index.

Declaration
public void CopyTo(ThemeSource[] array, int index)
Parameters
ThemeSource[] array

The one-dimensional System.Array that is the destination of the values copied from ThemeSourceCollection .

System.Int32 index

The index in array where copying begins.

Exceptions
System.ArgumentException

array is multidimensional.

-or-

The number of elements in the ThemeSourceCollection is greater than the available space between index and the end of array.

System.ArgumentNullException

array is null.

System.ArgumentOutOfRangeException

index is less than array's lowbound.

GetEnumerator()

Returns an enumerator that can iterate through the ThemeSourceCollection .

Declaration
public ThemeSourceCollection.ThemeSourceEnumerator GetEnumerator()
Returns
ThemeSourceCollection.ThemeSourceEnumerator

None.

IndexOf(ThemeSource)

Returns the index of a ThemeSource in the ThemeSourceCollection .

Declaration
public int IndexOf(ThemeSource value)
Parameters
ThemeSource value

The ThemeSource to locate.

Returns
System.Int32

The index of the ThemeSource of value in the ThemeSourceCollection, if found; otherwise, -1.

Insert(Int32, ThemeSource)

Inserts a ThemeSource into the ThemeSourceCollection at the specified index.

Declaration
public void Insert(int index, ThemeSource value)
Parameters
System.Int32 index

The zero-based index where value should be inserted.

ThemeSource value

The ThemeSource to insert.

OnClearComplete()

Declaration
protected override void OnClearComplete()
Overrides
System.Collections.CollectionBase.OnClearComplete()

OnInsertComplete(Int32, Object)

Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
System.Int32 index

System.Object value

Overrides
System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)

OnRemoveComplete(Int32, Object)

Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
System.Int32 index

System.Object value

Overrides
System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)

OnSetComplete(Int32, Object, Object)

Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
System.Int32 index

System.Object oldValue

System.Object newValue

Overrides
System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)

Remove(ThemeSource)

Removes a specific ThemeSource from the ThemeSourceCollection .

Declaration
public void Remove(ThemeSource value)
Parameters
ThemeSource value

The ThemeSource to remove from the ThemeSourceCollection .

Exceptions
System.ArgumentException

value is not found in the Collection.

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • 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.