RibbonButton.Command 屬性
適用於版本2
取得或設定要在按下按鈕時叫用的命令。
命名空間: Microsoft.WebMatrix.Extensibility
組件: Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)
語法
'宣告
Public Property Command As ICommand
Get
Private Set
'用途
Dim instance As RibbonButton
Dim value As ICommand
value = instance.Command
public ICommand Command { get; private set; }
public:
property ICommand^ Command {
ICommand^ get ();
private: void set (ICommand^ value);
}
member Command : ICommand with get, private set
function get Command () : ICommand
private function set Command (value : ICommand)
屬性值
型別:System.Windows.Input.ICommand
要在按下按鈕時叫用的命令。