IUIAutomationTextRange3::GetAttributeValues method

Returns all of the requested text attribute values for a text range in a single cross-process call. This is equivalent to calling GetAttributeValue, except it can retrieve multiple values instead of just one.

Syntax

HRESULT GetAttributeValues(
  const TEXTATTRIBUTEID *attributeIds,
  int                   attributeIdCount,
  SAFEARRAY             **attributeValues
);

Parameters

attributeIds

A list of text attribute identifiers.

attributeIdCount

The number of text attribute identifiers in the attributeIds list.

attributeValues

A SAFEARRAY of VARIANT containing values to corresponding text attributes for a text range.

Return Value

Returns S_OK if successful, otherwise an HRESULT error code.

Remarks

GetAttributeValues only gets the text attributes that are supplied in the call.

Requirements

   
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See Also

IUIAutomationTextRange3

UI Automation Support for Textual Content