IUIAutomationTextRange3::GetAttributeValues method (uiautomationclient.h)

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(
  [in]          const TEXTATTRIBUTEID *attributeIds,
  [in]          int                   attributeIdCount,
  [out, retval] SAFEARRAY             **attributeValues
);

Parameters

[in] attributeIds

A list of text attribute identifiers.

[in] attributeIdCount

The number of text attribute identifiers in the attributeIds list.

[out, retval] 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

Requirement Value
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