AutomationElement.AutomationElementInformation.AccessKey Property

Definition

Gets a string containing the access key character for the element.

C#
public string AccessKey { get; }

Property Value

The character, associated with an element, that is used to activate that element.

Remarks

An access key is a character in the text of a menu, menu item, or label of a control such as a button that activates the attached menu function. For example, the letter "O" is often used to invoke the Open file common dialog box from a File menu. UI Automation elements that have the access key property set always implement the InvokePattern class.

For more information, see AccessKeyProperty.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10