ToolboxItemCollection Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe ToolboxItemCollection.
Surcharges
| Nom | Description |
|---|---|
| ToolboxItemCollection(ToolboxItem[]) |
Initialise une nouvelle instance de la classe à l’aide ToolboxItemCollection du tableau spécifié d’éléments de boîte à outils. |
| ToolboxItemCollection(ToolboxItemCollection) |
Initialise une nouvelle instance de la classe à l’aide ToolboxItemCollection de la collection spécifiée. |
ToolboxItemCollection(ToolboxItem[])
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
Initialise une nouvelle instance de la classe à l’aide ToolboxItemCollection 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 types ToolboxItem contenant les éléments de boîte à outils pour remplir la collection.
Exemples
L’exemple de code suivant illustre la création d’une ToolboxItemCollection instance 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)
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
- Source:
- ToolboxItemCollection.cs
Initialise une nouvelle instance de la classe à l’aide ToolboxItemCollection 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
A ToolboxItemCollection pour remplir la nouvelle collection.
Exemples
L’exemple de code suivant illustre la création d’une ToolboxItemCollection instance 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)