ToolboxItemCollection Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av ToolboxItemCollection klassen.
Överlagringar
| Name | Description |
|---|---|
| ToolboxItemCollection(ToolboxItem[]) |
Initierar en ny instans av klassen med hjälp av ToolboxItemCollection den angivna matrisen med verktygslådeobjekt. |
| ToolboxItemCollection(ToolboxItemCollection) |
Initierar en ny instans av ToolboxItemCollection klassen med den angivna samlingen. |
ToolboxItemCollection(ToolboxItem[])
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
Initierar en ny instans av klassen med hjälp av ToolboxItemCollection den angivna matrisen med verktygslådeobjekt.
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())
Parametrar
- value
- ToolboxItem[]
En matris av typen ToolboxItem som innehåller de verktygslådeobjekt som samlingen ska fyllas med.
Exempel
I följande kodexempel visas hur du skapar en ny ToolboxItemCollection instans som initieras med hjälp av en matris med ToolboxItem objekt.
// 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))})
Gäller för
ToolboxItemCollection(ToolboxItemCollection)
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
- Källa:
- ToolboxItemCollection.cs
Initierar en ny instans av ToolboxItemCollection klassen med den angivna samlingen.
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)
Parametrar
- value
- ToolboxItemCollection
A ToolboxItemCollection för att fylla den nya samlingen med.
Exempel
I följande kodexempel visas hur du skapar en ny ToolboxItemCollection instans som initieras med hjälp av en annan 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)