共用方式為


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

包含快速鍵的字串。

適用於

另請參閱