ComponentTray.CanCreateComponentFromTool(ToolboxItem) Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> boolProtected Overridable Function CanCreateComponentFromTool (tool As ToolboxItem) As BooleanParameters
- tool
- ToolboxItem
The ToolboxItem to test.
Returns
true if the specified tool can be used to create a component; otherwise, false.
- Attributes