System.Windows.Forms.Design.ComponentDocumentDesigner.GetToolSupported Method

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

Syntax

protected virtual bool GetToolSupported (System.Drawing.Design.ToolboxItem tool)

Parameters

tool
The System.Drawing.Design.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.

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.

Requirements

Namespace: System.Windows.Forms.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0