ToolboxService::IsItemContainer Method (IDataObject^, IDesignerHost^)

 

Returns a value indicating whether the given data object represents an item container.

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

protected:
virtual bool IsItemContainer(
	IDataObject^ dataObject,
	IDesignerHost^ host
)

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::Boolean

true 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
Return to top
Show: