共用方式為


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

參數

element
DependencyObject

要檢查的 DependencyObject

傳回

String

Platform::String

winrt::hstring

快速鍵,以字串表示。

適用於