共用方式為


MenuCommand.CommandChanged 事件

定義

發生於功能表命令變更時。

public:
 event EventHandler ^ CommandChanged;
public event EventHandler CommandChanged;
public event EventHandler? CommandChanged;
member this.CommandChanged : EventHandler 
Public Custom Event CommandChanged As EventHandler 

事件類型

備註

如果命令已核取或停用,命令可能會變更。

適用於