TextRange_Compare Function

Compares two text ranges.

Syntax

HRESULT TextRange_Compare(      
    HUIATEXTRANGE hobj,
    HUIATEXTRANGE range,
    BOOL *pRetVal
);

Parameters

  • hobj
    [in] The first text range to compare.
  • range
    [in] The second text range to compare.
  • pRetVal
    [out] When this function returns, contains TRUE if the two objects span the same text; otherwise FALSE. 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