語言

KeyGesture.Key 屬性

定義

取得與此 KeyGesture相關聯的金鑰。

public:
 property System::Windows::Input::Key Key { System::Windows::Input::Key get(); };
public System.Windows.Input.Key Key { get; }
member this.Key : System.Windows.Input.Key
Public ReadOnly Property Key As Key

屬性值

Key

與這個動作相關的鑰匙。 預設值為 None

備註

在大多數情況下,a KeyGesture 必須與一個或多個 ModifierKeys相關聯。 此規則的例外是功能鍵和數字鍵盤鍵,兩者本身都可以有效 KeyGesture

適用於

另請參閱