compareEndPointscompareEndPoints*
*



Contents  *



Index  *Topic Contents
*Previous Topic: collapse
*Next Topic: confirm

compareEndPoints

Description

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

Syntax

object.compareEndPoints(type, range)

ParameterDescription
type String that describes the end point to compare. Can be one of these values:
StartToEnd
StartToStart
EndToStart
EndToEnd
range Text range object specifying the range from which the source end point is to be taken.

Return Value

Returns the result of the comparison.

Remarks

This feature might not be available on non-Win32 platforms. See article Q172976 in the Microsoft Knowledge Base for the latest information on Internet Explorer cross-platform compatibility.

Applies To

TextRange


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