共用方式為


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

快速鍵,做為字串。

適用於

另請參閱