Bewerken

Delen via


ComponentDocumentDesigner.GetToolSupported(ToolboxItem) Method

Definition

Important

This API is not CLS-compliant.

Gets a value indicating whether the specified tool is supported by the designer.

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

Parameters

tool
ToolboxItem

The ToolboxItem to test for toolbox support.

Returns

true if the tool should be enabled on the toolbox; false if the document designer doesn't know how to use the tool.

Attributes

Remarks

If a tool is supported, it will be enabled in the toolbox when the designer regains focus. Otherwise, it will be disabled. Once a tool is marked as enabled or disabled it cannot be queried again.

Applies to

See also