AutomationProperties.GetAcceleratorKey(DependencyObject) 方法

定义

获取指定 AcceleratorKeyDependencyObject 附加属性。

public:
 static System::String ^ GetAcceleratorKey(System::Windows::DependencyObject ^ element);
public static string GetAcceleratorKey (System.Windows.DependencyObject element);
static member GetAcceleratorKey : System.Windows.DependencyObject -> string
Public Shared Function GetAcceleratorKey (element As DependencyObject) As String

参数

element
DependencyObject

要检查的 DependencyObject

返回

String

包含加速键的字符串。

适用于

另请参阅