DocumentDesigner.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

屬性

備註

如果支援工具,當設計工具收到焦點時,就會在工具箱中啟用此工具。 否則,會將其停用。 一旦工具標示為已啟用或停用,就無法重新查詢。

適用於

另請參閱