AutomationProperties.SetAcceleratorKey(DependencyObject, String) 方法

定义

设置指定 DependencyObjectAcceleratorKey 附加属性。

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

要设置的加速器键值。

适用于

另请参阅