共用方式為


CommandContextChangedEventArgs.IsActive 屬性

True 如果使其無法啟動的指令內容、 false,即使內容已被停用了。

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

語法

'宣告
Public ReadOnly Property IsActive As Boolean
public bool IsActive { get; }

屬性值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

CommandContextChangedEventArgs 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間