共用方式為


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

適用於