DesignerCollection DesignerCollection DesignerCollection DesignerCollection Class

Definition

Represents a collection of designers.

public ref class DesignerCollection : System::Collections::ICollection
public class DesignerCollection : System.Collections.ICollection
type DesignerCollection = class
    interface ICollection
    interface IEnumerable
Public Class DesignerCollection
Implements ICollection
Inheritance
DesignerCollectionDesignerCollectionDesignerCollectionDesignerCollection
Implements

Examples

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

// Create a DesignerCollection using a constructor
// that accepts an array of IDesignerHost objects with 
// which to initialize the array.
array<IDesignerHost^>^temp0 = {designerhost1,designerhost2};
DesignerCollection^ collection = gcnew DesignerCollection( temp0 );
// 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 } );
' Create a DesignerCollection using a constructor
' that accepts an array of IDesignerHost objects with
' which to initialize the collection.
Dim collection As New DesignerCollection(New IDesignerHost() {designerhost1, designerhost2})

Remarks

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

Constructors

DesignerCollection(IDesignerHost[]) DesignerCollection(IDesignerHost[]) DesignerCollection(IDesignerHost[]) DesignerCollection(IDesignerHost[])

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

DesignerCollection(IList) DesignerCollection(IList) DesignerCollection(IList) DesignerCollection(IList)

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

Properties

Count Count Count Count

Gets the number of designers in the collection.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets the designer at the specified index.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Gets a new enumerator for this collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

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

ICollection.Count ICollection.Count ICollection.Count ICollection.Count

Gets the number of elements contained in the collection.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

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

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Gets a new enumerator for this collection.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Security

NamedPermissionSet
for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

Applies to