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 MultiObjectCollection

Represents a collection of objects. It can be used in a property grid to edit the common properties of the objects.

Inheritance
System.Object
MultiObjectCollection
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.WinControls.UI
Assembly: Telerik.WinControls.UI.dll

Syntax

public class MultiObjectCollection : IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable

Constructors

MultiObjectCollection()

Creates a new empty MultiObjectCollection.

Declaration
public MultiObjectCollection()

MultiObjectCollection(Object[])

Creates a new MultiObjectCollection with the specified objects.

Declaration
public MultiObjectCollection(object[] objects)
Parameters
System.Object[] objects

The objects to fill the collection with.

Properties

Count

Gets the number of items currently in the collection.

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

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

IsReadOnly

Gets a value indicating whether the collection si read only. Always returns false.

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

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

Item[Int32]

Gets or sets the object on the specified index.

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

The index of the object

Property Value
System.Object

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

Methods

Add(Object)

Adds an object to the collection.

Declaration
public void Add(object item)
Parameters
System.Object item

The object to add.

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

Clear()

Clears the entire collection.

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

Contains(Object)

Checks whether the collection contains the given object.

Declaration
public bool Contains(object item)
Parameters
System.Object item

The object to check for.

Returns
System.Boolean

True if the object is present in the collection, otherwise false.

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

CopyTo(Object[], Int32)

Copies the objects from the collection to a specified array starting at the given index.

Declaration
public void CopyTo(object[] array, int arrayIndex)
Parameters
System.Object[] array

The destination array.

System.Int32 arrayIndex

The index to start at in the destination array.

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

IndexOf(Object)

Gets the index of a given object.

Declaration
public int IndexOf(object item)
Parameters
System.Object item

The object to look for.

Returns
System.Int32

The index of the object or -1 if the object is not present in the collection.

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

Insert(Int32, Object)

Inserts an object in the given index.

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

The index to insert on.

System.Object item

The object to insert.

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

Remove(Object)

Removes a specified object from the collection.

Declaration
public bool Remove(object item)
Parameters
System.Object item

The object to remove.

Returns
System.Boolean

True if the object was removed otherwise false.

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

RemoveAt(Int32)

Removes an object from the specified index.

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

The index to remove from.

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

Explicit Interface Implementations

IEnumerable<Object>.GetEnumerator()

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

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

IEnumerable.GetEnumerator()

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

Implements
System.Collections.IEnumerable.GetEnumerator()

Extension Methods

CommonExtensions.AddRange<T>(ICollection<T>, IEnumerable<T>)
CommonExtensions.ContainsAny<T>(IEnumerable<T>, IEnumerable<T>)
CommonExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CommonExtensions.RemoveLast<T>(IList<T>)
CommonExtensions.EnsureListCountAtLeast<T>(IList<T>, Int32, Func<T>)
CommonExtensions.EnsureListCount<T>(IList<T>, Int32, Func<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.