DocumentDesigner::GetToolSupported Method (ToolboxItem^)

 

Indicates whether the specified tool is supported by the designer.

Namespace:   System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)

protected:
virtual bool GetToolSupported(
	ToolboxItem^ tool
)

Parameters

tool
Type: System.Drawing.Design::ToolboxItem^

The ToolboxItem to test for toolbox support.

Return Value

Type: System::Boolean

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

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

.NET Framework
Available since 1.1
Return to top
Show: