ToolboxItemContainer::GetToolboxItem Method (ICollection^)
Returns the ToolboxItem contained in the ToolboxItemContainer.
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
Parameters
- creators
-
Type:
System.Collections::ICollection^
A collection of ToolboxItemCreator objects.
Return Value
Type: System.Drawing.Design::ToolboxItem^The ToolboxItem contained in the ToolboxItemContainer.
The creators parameter is a collection of ToolboxItemCreator objects that represent any custom ToolboxItem creators that should be included when the ToolboxItem is obtained. This parameter can be null if no creators are needed.
The GetToolboxItem method returns a ToolboxItem that represents the data stored in the ToolboxItemContainer. GetToolboxItem never returns null, nor does it ever raise an exception, except in extreme cases (for example, out of memory). If a ToolboxItem cannot be fabricated, the appropriate exception is embedded within a special ToolboxItem. The exception is thrown when the CreateComponents method on this special ToolboxItem is called. This puts the exception at the point of user action.
Available since 2.0