AutomationProperties.SetAcceleratorKey(DependencyObject, String) 方法

定义

设置指定 DependencyObjectAutomationProperties.AcceleratorKey 附加属性的值。

public:
 static void SetAcceleratorKey(DependencyObject ^ element, Platform::String ^ value);
 static void SetAcceleratorKey(DependencyObject const& element, winrt::hstring const& value);
public static void SetAcceleratorKey(DependencyObject element, string value);
function setAcceleratorKey(element, value)
Public Shared Sub SetAcceleratorKey (element As DependencyObject, value As String)

参数

element
DependencyObject

要为其设置 属性的 DependencyObject

value
String

Platform::String

winrt::hstring

要设置的加速器键值。

适用于