語言

AutomationElement.AutomationElementInformation.AccessKey 屬性

定義

取得包含該元素存取鍵字元的字串。

public:
 property System::String ^ AccessKey { System::String ^ get(); };
public string AccessKey { get; }
member this.AccessKey : string
Public ReadOnly Property AccessKey As String

屬性值

與元素相關的角色,用來啟動該元素。

備註

存取鍵是選單文字中的一個字元,或是控制項標籤中的一個字元,例如啟動附加選單功能的按鈕。 例如,字母「O」常用於從檔案選單中呼叫「開啟檔案」共用對話框。 使用者介面自動化具有存取鍵屬性的元素,總是實作 InvokePattern 類別。

如需詳細資訊,請參閱AccessKeyProperty。

適用於