System.Drawing.Design.IToolboxUser.GetToolSupported Method

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

Syntax

public bool GetToolSupported (ToolboxItem tool)

Parameters

tool
The System.Drawing.Design.ToolboxItem to be tested for toolbox support.

Returns

true if the tool is supported by the toolbox and can be enabled; false if the document designer does not know how to use the tool.

Remarks

If the specified tool is supported by the designer implementing the System.Drawing.Design.IToolboxUser interface, then the tool will be enabled in the toolbox when this designer has focus. Otherwise, it will be disabled. Once a tool is marked as enabled or disabled, it may not be tested for support with the same designer again.

Requirements

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