Share via


ITextRangeProvider::Compare Method

Returns a Boolean value indicating whether the span (the start endpoint to the end endpoint) of a text range is the same as another text range.

Syntax

HRESULT Compare(      
    ITextRangeProvider *range,
    BOOL *pRetVal
);

Parameters

  • range
    [in] The address of the ITextRangeProvider interface of a text range to compare
  • pRetVal
    [out, retval] The address of a variable that receives TRUE if the span of both text ranges is identical; otherwise FALSE. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

UI Automation Providers Overview, ITextProvider