ComponentTray.CanCreateComponentFromTool(ToolboxItem) 方法

定义

重要

此 API 不符合 CLS。

获取一个值,该值指示指定的工具是否可用于创建新组件。

protected:
 virtual bool CanCreateComponentFromTool(System::Drawing::Design::ToolboxItem ^ tool);
protected virtual bool CanCreateComponentFromTool (System.Drawing.Design.ToolboxItem tool);
[System.CLSCompliant(false)]
protected virtual bool CanCreateComponentFromTool (System.Drawing.Design.ToolboxItem tool);
abstract member CanCreateComponentFromTool : System.Drawing.Design.ToolboxItem -> bool
override this.CanCreateComponentFromTool : System.Drawing.Design.ToolboxItem -> bool
[<System.CLSCompliant(false)>]
abstract member CanCreateComponentFromTool : System.Drawing.Design.ToolboxItem -> bool
override this.CanCreateComponentFromTool : System.Drawing.Design.ToolboxItem -> bool
Protected Overridable Function CanCreateComponentFromTool (tool As ToolboxItem) As Boolean

参数

tool
ToolboxItem

要测试的 ToolboxItem

返回

Boolean

如果指定的工具可用于创建组件,则为 true;否则为 false

属性

适用于