IAnchor::Compare method (textstor.h)
The IAnchor::Compare method compares the relative position of two anchors within a text stream.
Syntax
HRESULT Compare(
[in] IAnchor *paWith,
[out] LONG *plResult
);
Parameters
[in] paWith
An anchor object to compare to the primary anchor. Used to determine the relative position of the two anchors.
[out] plResult
Result of the comparison of the positions of the two anchors.
Return value
This method can return one of these values.
Value | Description |
---|---|
|
The method was successful. |
|
paWith is invalid. |
|
plResult is invalid. |
Remarks
The value 0 is returned for *plResult only when the two anchors are in a single region. Anchor positions include the spaces between regions. If you only need to determine if the two anchors are positioned at the same location, IAnchor::IsEqual is more efficient.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | textstor.h |
DLL | Msctf.dll |
Redistributable | TSF 1.0 on Windows 2000 Professional |