DesignerCollection Class

Definition

Represents a collection of designers.

C#
public class DesignerCollection : System.Collections.ICollection
Inheritance
DesignerCollection
Implements

Examples

The following code example creates a DesignerCollection initialized with a specified array of IDesignerHost objects.

C#
// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
DesignerCollection collection = new DesignerCollection( 
    new IDesignerHost[] { designerhost1, designerhost2 } );

Remarks

This collection object can store references to a set of designers.

Constructors

DesignerCollection(IDesignerHost[])

Initializes a new instance of the DesignerCollection class that contains the specified designers.

DesignerCollection(IList)

Initializes a new instance of the DesignerCollection class that contains the specified set of designers.

Properties

Count

Gets the number of designers in the collection.

Item[Int32]

Gets the designer at the specified index.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Gets a new enumerator for this collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the elements of the collection to an Array, starting at a particular Array index.

ICollection.Count

Gets the number of elements contained in the collection.

ICollection.IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

ICollection.SyncRoot

Gets an object that can be used to synchronize access to the collection.

IEnumerable.GetEnumerator()

Gets a new enumerator for this collection.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1