共用方式為


AutomationProperties.SetAccessKey(DependencyObject, String) 方法

定義

為指定的 DependencyObject 設定 AccessKey 附加屬性。

public:
 static void SetAccessKey(System::Windows::DependencyObject ^ element, System::String ^ value);
public static void SetAccessKey (System.Windows.DependencyObject element, string value);
static member SetAccessKey : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetAccessKey (element As DependencyObject, value As String)

參數

element
DependencyObject

要設定屬性的 DependencyObject

value
String

要設定的存取金鑰值。

適用於

另請參閱