ComponentDocumentDesigner.GetToolSupported(ToolboxItem) 方法

定义

重要

此 API 不符合 CLS。

获取一个值,该值指示设计器是否支持指定的工具。

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

参数

tool
ToolboxItem

ToolboxItem 测试工具箱支持。

返回

true 如果应在工具箱上启用该工具,则为 false 如果文档设计器不知道如何使用该工具,

属性

注解

如果支持某个工具,设计器重新获得焦点时将在工具箱中启用该工具。 否则,它处于禁用状态。 工具标记为启用或禁用后,无法再次查询它。

适用于

另请参阅