Partilhar via


ComponentTray.CanCreateComponentFromTool(ToolboxItem) Método

Definição

Importante

Esta API não está em conformidade com CLS.

Obtém um valor que indica se a ferramenta especificada pode ser usada para criar um novo componente.

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

Parâmetros

tool
ToolboxItem

O ToolboxItem a ser testado.

Retornos

Boolean

true se a ferramenta especificada puder ser usada para criar um componente; caso contrário, false.

Atributos

Aplica-se a