AutomationProperties.GetAcceleratorKey(DependencyObject) 方法

定义

获取指定 DependencyObjectAutomationProperties.AcceleratorKey 附加属性的值。

public:
 static Platform::String ^ GetAcceleratorKey(DependencyObject ^ element);
 static winrt::hstring GetAcceleratorKey(DependencyObject const& element);
public static string GetAcceleratorKey(DependencyObject element);
function getAcceleratorKey(element)
Public Shared Function GetAcceleratorKey (element As DependencyObject) As String

参数

返回

String

Platform::String

winrt::hstring

快捷键,作为字符串。

适用于