Share via


TextRange_GetAttributeValue Function

Note  This function is deprecated. Client applications should use the Microsoft UI Automation COM interfaces instead.

Gets the value of an text attribute for a text range.

Syntax

HRESULT TextRange_GetAttributeValue(      
    HUIATEXTRANGE hobj,
    TEXTATTRIBUTEID attributeID,
    VARIANT *pRetVal
);

Parameters

  • hobj
    [in] A text range object.
  • attributeID
    [in] The text attribute whose value is wanted. For a list of text attribute IDs, see Text Attribute Identifiers.
  • pRetVal
    [out] When this function returns, contains the value of the attribute for the text range. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful or an error value otherwise.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP