IUIAutomationElement::CachedAccessKey Property

Retrieves the element's access key character from the cache.

Syntax

HRESULT IUIAutomationElement::get_CachedAccessKey(BSTR *retVal);

Parameters

  • retVal
    The address of a BSTR that receives the access key character.

Return Value

Returns S_OK if successful, or an error value otherwise.

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. Microsoft UI Automation elements that have the access key property set always implement the Invoke control pattern.

See Also

UIA_AccessKeyPropertyId, IUIAutomationElement::CurrentAccessKey