AutomationElement.AutomationElementInformation.AcceleratorKey 屬性

定義

取得的字串包含項目的快速鍵組合。Gets a string containing the accelerator key combinations for the element.

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

屬性值

String

此組合鍵順序可叫用與項目關聯的動作。The sequence of key combinations that invoke an action associated with the element.

備註

快速鍵組合會叫用動作。Accelerator key combinations invoke an action. 例如,CTRL + O 通常用來叫用 [ 開啟 檔案] 對話方塊。For example, CTRL + O is often used to invoke the File Open dialog box. 具有快速鍵屬性集的消費者介面自動化元素一律會實作為 InvokePattern 類別。UI Automation elements that have the accelerator key property set always implement the InvokePattern class.

如需詳細資訊,請參閱AcceleratorKeyPropertyFor more information, see AcceleratorKeyProperty.

適用於