Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextRangeProvider::Compare method

Retrieves a value that specifies whether this text range has the same endpoints as another text range.

Syntax


HRESULT Compare(
  [in]           ITextRangeProvider *range,
  [out, retval]  BOOL *pRetVal
);

Parameters

range [in]

Type: ITextRangeProvider*

The text range to compare with this one.

pRetVal [out, retval]

Type: BOOL*

Receives TRUE if the text ranges have the same endpoints, or FALSE if they do not.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method compares the endpoints of the two text ranges, not the text in the ranges. The ranges are identical if they share the same endpoints. If two text ranges have different endpoints, they are not identical even if the text in both ranges is exactly the same.

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

Reference
ITextProvider
ITextRangeProvider
Conceptual
UI Automation Providers Overview

 

 

Community Additions

Show:
© 2014 Microsoft