Bearbeiten

Freigeben über


ComponentTray.CanCreateComponentFromTool(ToolboxItem) Method

Definition

Important

This API is not CLS-compliant.

Gets a value indicating whether the specified tool can be used to create a new component.

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

Parameters

tool
ToolboxItem

The ToolboxItem to test.

Returns

true if the specified tool can be used to create a component; otherwise, false.

Attributes

Applies to