ToolStripItem.Command Właściwość

Definicja

Uwaga

Aby korzystać z tego interfejsu API w wersji zapoznawczej, należy włączyć funkcje w wersji zapoznawczej w projekcie, ustawiając właściwość EnablePreviewFeatures na True w pliku projektu. Aby uzyskać więcej informacji, zobacz https://aka.ms/dotnet-preview-features.

Pobiera lub ustawia metodę ICommand , której Execute(Object) zostanie wywołana po wywołaniu zdarzenia ToolStripItem Click .

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

Wartość właściwości

Atrybuty

Dotyczy