ToolboxItemCollection Constructeurs

Définition

Initialise une nouvelle instance de la classe ToolboxItemCollection.

Surcharges

ToolboxItemCollection(ToolboxItem[])

Initialise une nouvelle instance de la classe ToolboxItemCollection à l'aide du tableau spécifié d'éléments de boîte à outils.

ToolboxItemCollection(ToolboxItemCollection)

Initialise une nouvelle instance de la classe ToolboxItemCollection à l'aide de la collection spécifiée.

ToolboxItemCollection(ToolboxItem[])

Initialise une nouvelle instance de la classe ToolboxItemCollection à l'aide du tableau spécifié d'éléments de boîte à outils.

public:
 ToolboxItemCollection(cli::array <System::Drawing::Design::ToolboxItem ^> ^ value);
public ToolboxItemCollection (System.Drawing.Design.ToolboxItem[] value);
new System.Drawing.Design.ToolboxItemCollection : System.Drawing.Design.ToolboxItem[] -> System.Drawing.Design.ToolboxItemCollection
Public Sub New (value As ToolboxItem())

Paramètres

value
ToolboxItem[]

Tableau de type ToolboxItem contenant les éléments de boîte à outils à utiliser pour remplir la collection.

Exemples

L’exemple de code suivant illustre la création d’une instance ToolboxItemCollection initialisée à l’aide d’un tableau d’objets ToolboxItem .

// Create a new ToolboxItemCollection using a ToolboxItem array.
array<ToolboxItem^>^temp0 = {gcnew ToolboxItem( System::Windows::Forms::Label::typeid ),gcnew ToolboxItem( System::Windows::Forms::TextBox::typeid )};
ToolboxItemCollection^ collection = gcnew ToolboxItemCollection( temp0 );
// Create a new ToolboxItemCollection using a ToolboxItem array.
ToolboxItemCollection collection = 
    new ToolboxItemCollection( new ToolboxItem[] { 
        new ToolboxItem(typeof(System.Windows.Forms.Label)),
        new ToolboxItem(typeof(System.Windows.Forms.TextBox)) } );
' Create a new ToolboxItemCollection using a ToolboxItem array.
Dim collection As New ToolboxItemCollection(New ToolboxItem() _
 {New ToolboxItem(GetType(System.Windows.Forms.Label)), _
  New ToolboxItem(GetType(System.Windows.Forms.TextBox))})

S’applique à

ToolboxItemCollection(ToolboxItemCollection)

Initialise une nouvelle instance de la classe ToolboxItemCollection à l'aide de la collection spécifiée.

public:
 ToolboxItemCollection(System::Drawing::Design::ToolboxItemCollection ^ value);
public ToolboxItemCollection (System.Drawing.Design.ToolboxItemCollection value);
new System.Drawing.Design.ToolboxItemCollection : System.Drawing.Design.ToolboxItemCollection -> System.Drawing.Design.ToolboxItemCollection
Public Sub New (value As ToolboxItemCollection)

Paramètres

value
ToolboxItemCollection

ToolboxItemCollection à utiliser pour remplir la nouvelle collection.

Exemples

L’exemple de code suivant illustre la création d’une instance ToolboxItemCollection initialisée à l’aide d’une autre ToolboxItemCollection.

// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection^ coll = gcnew ToolboxItemCollection( collection );
// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection coll =
    new ToolboxItemCollection( collection );
' Creates a new ToolboxItemCollection using an existing ToolboxItemCollection.
Dim coll As New ToolboxItemCollection(collection)

S’applique à