ToolboxService.IsItemContainerSupported 方法

定义

确定给定的设计器宿主是否支持工具箱项容器。

protected:
 bool IsItemContainerSupported(System::Drawing::Design::ToolboxItemContainer ^ container, System::ComponentModel::Design::IDesignerHost ^ host);
protected bool IsItemContainerSupported (System.Drawing.Design.ToolboxItemContainer container, System.ComponentModel.Design.IDesignerHost host);
member this.IsItemContainerSupported : System.Drawing.Design.ToolboxItemContainer * System.ComponentModel.Design.IDesignerHost -> bool
Protected Function IsItemContainerSupported (container As ToolboxItemContainer, host As IDesignerHost) As Boolean

参数

container
ToolboxItemContainer

工具箱项容器。

host
IDesignerHost

给定的设计器宿主。

返回

如果给定的设计器宿主支持工具箱项容器,则为 true;否则为 false

例外

containerhostnull

适用于