Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AutomationElement.AutomationElementInformation.AccessKey Property

Definition

Namespace:
System.Windows.Automation
Assembly:
UIAutomationClient.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

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

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


Feedback

Was this page helpful?