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 RadItemReadOnlyCollection

Inheritance
System.Object
System.Collections.ReadOnlyCollectionBase
RadItemReadOnlyCollection
Inherited Members
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ReadOnlyCollectionBase.InnerList
System.Collections.ReadOnlyCollectionBase.Count
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.SyncRoot
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.Elements
Assembly: Telerik.WinControls.dll

Syntax

public class RadItemReadOnlyCollection : ReadOnlyCollectionBase, ICollection, IEnumerable<RadItem>, IEnumerable

Constructors

RadItemReadOnlyCollection(RadItem[])

Initializes a new instance of RadItemCollection containing any array of RadElement objects.

Declaration
public RadItemReadOnlyCollection(RadItem[] value)
Parameters
RadItem[] value

A array of RadElement objects with which to intialize the collection

RadItemReadOnlyCollection(RadItemOwnerCollection)

Initializes a new instance of RadItemCollection based on another RadItemCollection.

Declaration
public RadItemReadOnlyCollection(RadItemOwnerCollection value)
Parameters
RadItemOwnerCollection value

A RadItemCollection from which the contents are copied

Properties

Item[Int32]

Represents the entry at the specified index of the RadElement.

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

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

Property Value
RadItem

The entry at the specified index of the collection.

Exceptions
System.ArgumentOutOfRangeException

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

Methods

Contains(RadItem)

Gets a value indicating whether the RadItemCollection contains the specified RadElement.

Declaration
public bool Contains(RadItem value)
Parameters
RadItem value

The RadElement to locate.

Returns
System.Boolean

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

CopyTo(RadItem[], Int32)

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

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

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

System.Int32 index

The index in array where copying begins.

Exceptions
System.ArgumentException

array is multidimensional.

-or-

The number of elements in the RadItemCollection 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()

Declaration
public RadItemReadOnlyCollection.RadItemReadOnlyEnumerator GetEnumerator()
Returns
RadItemReadOnlyCollection.RadItemReadOnlyEnumerator

IndexOf(RadItem)

Returns the index of a RadElement in the RadItemCollection .

Declaration
public int IndexOf(RadItem value)
Parameters
RadItem value

The RadElement to locate.

Returns
System.Int32

The index of the RadElement of value in the RadItemCollection, if found; otherwise, -1.

OnItemsChanged(RadItemCollection, RadItem, ItemsChangeOperation)

Declaration
protected virtual void OnItemsChanged(RadItemCollection changed, RadItem target, ItemsChangeOperation operation)
Parameters
RadItemCollection changed

RadItem target

ItemsChangeOperation operation

Sort()

Sorts the elements in the entire RadElementCollection using the IComparable implementation of each element.

Declaration
public void Sort()

Sort(IComparer)

Sorts the elements in the entire RadElementCollection using the specified comparer.

Declaration
public void Sort(IComparer comparer)
Parameters
System.Collections.IComparer comparer

The IComparer implementation to use when comparing elements.

Sort(Int32, Int32, IComparer)

Sorts the elements in a range of elements in RadElementCollection using the specified comparer.

Declaration
public void Sort(int index, int count, IComparer comparer)
Parameters
System.Int32 index

The zero-based starting index of the range to sort.

System.Int32 count

The length of the range to sort.

System.Collections.IComparer comparer

The IComparer implementation to use when comparing elements.

ToArray()

Retrieves an array of the items in the collection.

Declaration
public RadItem[] ToArray()
Returns
RadItem[]

Events

ItemsChanged

Declaration
public event ItemChangedDelegate ItemsChanged
Event Type
ItemChangedDelegate

Explicit Interface Implementations

IEnumerable<RadItem>.GetEnumerator()

Declaration
IEnumerator<RadItem> IEnumerable<RadItem>.GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<RadItem>

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

Extension Methods

CommonExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
CommonExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CommonExtensions.Clone<T>(IEnumerable<T>)
ExtensionMethodsEditor.CastCovariant<TFrom, TTo>(IEnumerable<TFrom>)
SvgExtentions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(IEnumerable<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.