共用方式為


AutomationProperties.SetAcceleratorKey(DependencyObject, String) 方法

定義

為指定的 DependencyObject 設定 AcceleratorKey 附加屬性。

public:
 static void SetAcceleratorKey(System::Windows::DependencyObject ^ element, System::String ^ value);
public static void SetAcceleratorKey (System.Windows.DependencyObject element, string value);
static member SetAcceleratorKey : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetAcceleratorKey (element As DependencyObject, value As String)

參數

element
DependencyObject

要設定屬性的 DependencyObject

value
String

要設定的快速鍵值。

適用於

另請參閱