ToolboxService::IsItemContainer Method (IDataObject^, IDesignerHost^)
.NET Framework (current version)
Returns a value indicating whether the given data object represents an item container.
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
Parameters
- dataObject
-
Type:
System.Windows.Forms::IDataObject^
The data object to examine for the presence of a toolbox item container.
- host
-
Type:
System.ComponentModel.Design::IDesignerHost^
An optional designer host. This parameter can be null.
Return Value
Type: System::Booleantrue if the given data object represents an item container; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | dataObject is null. |
The data object may directly represent an item container, or there may be a custom toolbox creator that is registered to handle the format contained within the data object.
If the host parameter is a valid designer host, the IsItemContainer method searches toolbox item creators that are associated with the designer host. If host is supplied, toolbox item creators that are associated with the host are also compared.
.NET Framework
Available since 2.0
Available since 2.0
Show: