ToolboxItemContainer.GetToolboxItem(ICollection) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the ToolboxItem contained in the ToolboxItemContainer.
public:
virtual System::Drawing::Design::ToolboxItem ^ GetToolboxItem(System::Collections::ICollection ^ creators);
public virtual System.Drawing.Design.ToolboxItem GetToolboxItem(System.Collections.ICollection creators);
abstract member GetToolboxItem : System.Collections.ICollection -> System.Drawing.Design.ToolboxItem
override this.GetToolboxItem : System.Collections.ICollection -> System.Drawing.Design.ToolboxItem
Public Overridable Function GetToolboxItem (creators As ICollection) As ToolboxItem
- creators
- ICollection
A collection of ToolboxItemCreator objects.
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.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: