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 jQuery UI for Angular UI for React UI for Vue 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 Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    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 RadElementCollection

A collection that stores RadElement objects.

Inheritance
System.Object
System.Collections.CollectionBase
RadElementCollection
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.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 RadElementCollection : CollectionBase, IList, ICollection, IEnumerable<RadElement>, IEnumerable

Constructors

RadElementCollection(RadElement)

Initializes a new instance of the RadElementCollection.

Declaration
public RadElementCollection(RadElement owner)
Parameters
RadElement owner

RadElementCollection(RadElement, RadElement[])

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

Declaration
public RadElementCollection(RadElement owner, RadElement[] value)
Parameters
RadElement owner

RadElement[] value

A array of RadElement objects with which to intialize the collection

RadElementCollection(RadElement, RadElementCollection)

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

Declaration
public RadElementCollection(RadElement owner, RadElementCollection value)
Parameters
RadElement owner

RadElementCollection value

A RadElementCollection from which the contents are copied

Fields

checkForAlreadyAddedItems

Declaration
public bool checkForAlreadyAddedItems
Field Value
System.Boolean

Properties

Item[Int32]

Represents the entry at the specified index of the RadElement.

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

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

Property Value
RadElement

The entry at the specified index of the collection.

Exceptions
System.ArgumentOutOfRangeException

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

Owner

Declaration
public RadElement Owner { get; }
Property Value
RadElement

Methods

Add(RadElement)

Adds a RadElement with the specified value to the RadElementCollection .

Declaration
public int Add(RadElement value)
Parameters
RadElement value

The RadElement to add.

Returns
System.Int32

The index at which the new element was inserted.

AddRange(IList<RadElement>)

Copies the elements of an IList of RadElements to the end of the RadElementCollection.

Declaration
public void AddRange(IList<RadElement> value)
Parameters
System.Collections.Generic.IList<RadElement> value

An List of type RadElement containing the objects to add to the collection.

AddRange(RadElement[])

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

Declaration
public void AddRange(params RadElement[] value)
Parameters
RadElement[] value

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

AddRange(RadElementCollection)

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

Declaration
public void AddRange(RadElementCollection value)
Parameters
RadElementCollection value

A RadElementCollection containing the objects to add to the collection.

BinarySearch(Int32, Int32, RadElement, IComparer)

Declaration
public int BinarySearch(int index, int count, RadElement value, IComparer comparer)
Parameters
System.Int32 index

System.Int32 count

RadElement value

System.Collections.IComparer comparer

Returns
System.Int32

Contains(RadElement)

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

Declaration
public bool Contains(RadElement value)
Parameters
RadElement value

The RadElement to locate.

Returns
System.Boolean

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

CopyTo(RadElement[], Int32)

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

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

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

System.Int32 index

The index in array where copying begins.

Exceptions
System.ArgumentException

array is multidimensional.

-or-

The number of elements in the RadElementCollection 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 RadElementCollection .

Declaration
public RadElementCollection.RadElementEnumerator GetEnumerator()
Returns
RadElementCollection.RadElementEnumerator

None.

IndexOf(RadElement)

Returns the index of a RadElement in the RadElementCollection .

Declaration
public int IndexOf(RadElement value)
Parameters
RadElement value

The RadElement to locate.

Returns
System.Int32

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

Insert(Int32, RadElement)

Inserts a RadElement into the RadElementCollection at the specified index.

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

The zero-based index where value should be inserted.

RadElement value

The RadElement to insert.

Move(Int32, Int32)

Moves the element at position a given position to a new position

Declaration
public void Move(int indexFrom, int indexTo)
Parameters
System.Int32 indexFrom

The zero-based index of the element to move

System.Int32 indexTo

The zero-based index of the position where the element is to be placed

OnClear()

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

OnClearComplete()

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

OnInsert(Int32, Object)

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

System.Object value

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

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)

OnRemove(Int32, Object)

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

System.Object value

Overrides
System.Collections.CollectionBase.OnRemove(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)

OnSet(Int32, Object, Object)

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

System.Object oldValue

System.Object newValue

Overrides
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, 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)

OnValidate(Object)

Declaration
protected override void OnValidate(object value)
Parameters
System.Object value

Overrides
System.Collections.CollectionBase.OnValidate(System.Object)

Remove(RadElement)

Removes a specific RadElement from the RadElementCollection .

Declaration
public void Remove(RadElement value)
Parameters
RadElement value

The RadElement to remove from the RadElementCollection .

Exceptions
System.ArgumentException

value is not found in the Collection.

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.

SwitchItems(Int32, Int32)

Declaration
public void SwitchItems(int indexFrom, int indexTo)
Parameters
System.Int32 indexFrom

System.Int32 indexTo

Explicit Interface Implementations

IEnumerable<RadElement>.GetEnumerator()

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

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.