IUIAutomationStylesPattern::get_CachedStyleName method (uiautomationclient.h)

Retrieves the cached name of the visual style associated with an element in a document.

This property is read-only.

Syntax

HRESULT get_CachedStyleName(
  BSTR *retVal
);

Parameters

retVal

Return value

None

Remarks

The style name typically indicates the role of the element in the document, such as “Heading 1.”

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See also

IUIAutomationStylesPattern