Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ToolboxItemCollection Constructor (array<ToolboxItem^>^)

 

Initializes a new instance of the ToolboxItemCollection class using the specified array of toolbox items.

Namespace:   System.Drawing.Design
Assembly:  System.Drawing (in System.Drawing.dll)

public:
ToolboxItemCollection(
	array<ToolboxItem^>^ value
)

Parameters

value
Type: array<System.Drawing.Design::ToolboxItem^>^

An array of type ToolboxItem containing the toolbox items to fill the collection with.

The following code example demonstrates creating a new ToolboxItemCollection instance initialized using an array of ToolboxItem objects.

// 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 );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft