ToolboxService::GetToolboxItem Method (Type^, Boolean)
.NET Framework (current version)
Returns a toolbox item for a given type.
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
Parameters
- toolType
-
Type:
System::Type^
The type of component for which to retrieve the toolbox item.
- nonPublic
-
Type:
System::Boolean
true to search for non-public constructors on the type; false to search for public constructors.
Return Value
Type: System.Drawing.Design::ToolboxItem^A toolbox item associated with the given type, or null if the type has no corresponding toolbox item.
| Exception | Condition |
|---|---|
| ArgumentNullException | toolType is null. |
.NET Framework
Available since 2.0
Available since 2.0
Show: