共用方式為


ToolWindow.HasSelectableObjects 屬性

取得工具視窗會停用選取物件指令如果不載入的文件。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Protected Overrides ReadOnly Property HasSelectableObjects As Boolean
protected override bool HasSelectableObjects { get; }

屬性值

型別:System.Boolean
true 如果選取物件應該啟用命令; 否則, false。

備註

根據預設,這個值是false。

.NET Framework 安全性

請參閱

參考

ToolWindow 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間