Skip to main content

GetAccessKey Method

Gets the access key for the element that is associated with the automation peer.

Definition

Namespace: Avalonia.Automation.Peers
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public string? GetAccessKey()

Return Value

String

Remarks

An access key (sometimes called a mnemonic) is a character in the text of a menu, menu item, or label of a control such as a button, that activates the associated function. For example, to open the File menu, for which the access key is typically F, the user would press ALT+F.

WindowsUIA_AccessKeyPropertyId
macOSNo mapping

See Also

Reference

AutomationPeer Class
Avalonia.Automation.Peers Namespace