ComponentDocumentDesigner.GetToolSupported(ToolboxItem) 方法

定義

會獲得一個值,表示該指定工具是否被設計者支援。

protected:
 virtual bool GetToolSupported(System::Drawing::Design::ToolboxItem ^ tool);
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
Protected Overridable Function GetToolSupported (tool As ToolboxItem) As Boolean

參數

tool
ToolboxItem

測試 ToolboxItem 工具箱支援。

傳回

true 工具箱中是否應啟用該工具; false 如果文件設計師不會使用這個工具,

備註

如果某工具被支援,設計師重新聚焦時,工具箱中會啟用該工具。 否則將會停用。 一旦工具被標記為啟用或停用,就無法再次查詢。

適用於

另請參閱