IHTMLTxtRange::compareEndPointsIHTMLTxtRange::compareEndPoints*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLTxtRange::collapse
*Next Topic: IHTMLTxtRange::duplicate

IHTMLTxtRange::compareEndPoints


HRESULT compareEndPoints(
    BSTR how,
    IHTMLTxtRange *SourceRange,
    long *ret
);

Compares two end points and returns -1, 0, or 1 for less than, equal, or greater than, respectively.

how
String describing the end points to compare. Can be one of these values:
StartToEnd Compares the start point of the current range to the end point of the given range.
StartToStart Compares the start point of the current range to the start point of the given range.
EndToStart Compares the end point of the current range to the start point of the given range.
EndToEnd Compares the end point of the current range to the end point of the given range.
SourceRange
Interface pointer of the range object against which the current range is to be compared.
ret
Address of a variable that receives the result of the comparison. Can be one of these values:
-1 The end point of SourceRange is less than that of the current range.
0 The end point of SourceRange is equal to that of the current range.
1 The end point of SourceRange is greater than that of the current range.

See also setEndPoint


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.