ToolboxService.IsItemContainer(IDataObject, IDesignerHost) Method

Definition

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

protected:
 virtual bool IsItemContainer(System::Windows::Forms::IDataObject ^ dataObject, System::ComponentModel::Design::IDesignerHost ^ host);
protected virtual bool IsItemContainer (System.Windows.Forms.IDataObject dataObject, System.ComponentModel.Design.IDesignerHost host);
abstract member IsItemContainer : System.Windows.Forms.IDataObject * System.ComponentModel.Design.IDesignerHost -> bool
override this.IsItemContainer : System.Windows.Forms.IDataObject * System.ComponentModel.Design.IDesignerHost -> bool
Protected Overridable Function IsItemContainer (dataObject As IDataObject, host As IDesignerHost) As Boolean

Parameters

dataObject
IDataObject

The data object to examine for the presence of a toolbox item container.

host
IDesignerHost

An optional designer host. This parameter can be null.

Returns

true if the given data object represents an item container; otherwise, false.

Exceptions

dataObject is null.

Remarks

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.

Applies to

See also