IUIAutomationStylesPattern::get_CurrentStyleName method

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

This property is read-only.

Syntax

HRESULT get_CurrentStyleName(
  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

   
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