DesignerCollection Class
Represents a collection of designers.
For a list of all members of this type, see DesignerCollection Members.
System.Object
System.ComponentModel.Design.DesignerCollection
[Visual Basic] Public Class DesignerCollection Implements ICollection, IEnumerable [C#] public class DesignerCollection : ICollection, IEnumerable [C++] public __gc class DesignerCollection : public ICollection, IEnumerable [JScript] public class DesignerCollection implements ICollection, IEnumerable
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
This collection object can store references to a set of designers.
Example
[Visual Basic, C#, C++] The following code example creates a DesignerCollection initialized with a specified array of IDesignerHost objects.
[Visual Basic] ' 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}) [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 } ); [C++] // Create a DesignerCollection using a constructor // that accepts an array of IDesignerHost objects with // which to initialize the array. IDesignerHost* temp0 [] = {designerhost1, designerhost2}; DesignerCollection* collection = new DesignerCollection( temp0 );
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.ComponentModel.Design
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System (in System.dll)
See Also
DesignerCollection Members | System.ComponentModel.Design Namespace