ToolStripItem.Command Proprietà

Definizione

Nota

Per usare questa API di anteprima, devi abilitare le funzionalità di anteprima nel progetto impostando la proprietà EnablePreviewFeatures su True nel file del progetto. Per altre informazioni, vedere https://aka.ms/dotnet-preview-features.

Ottiene o imposta il ICommand metodo il cui Execute(Object) metodo verrà chiamato quando viene richiamato l'evento Click ToolStripItem.

public:
 property System::Windows::Input::ICommand ^ Command { System::Windows::Input::ICommand ^ get(); void set(System::Windows::Input::ICommand ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
[System.Runtime.Versioning.RequiresPreviewFeatures]
public System.Windows.Input.ICommand Command { get; set; }
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public System.Windows.Input.ICommand? Command { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
member this.Command : System.Windows.Input.ICommand with get, set
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.Command : System.Windows.Input.ICommand with get, set
Public Property Command As ICommand

Valore della proprietà

Attributi

Si applica a