Share via


setEndPoint Method

Sets the end point of one range based on the end point of another range.

expression.setEndPoint(how, SourceRange)

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Compares an end point of an IHTMLTxtRange object with an end point of another IHTMLTxtRange object. Returns a Long that represents the comparison of the specified points.

expression.compareEndPoints(how, SourceRange)

*expression   * Required. An expression that returns an IHTMLTxtRange object.

May be one of four values.

The String value of the how parameter can be one of the following:

Value Description
StartToStart Moves the start of the specified IHTMLTxtRange object to the start of the IHTMLTxtRange object specified in the SourceRange parameter.
StartToEnd Moves the start of the specified IHTMLTxtRange object to the end of the IHTMLTxtRange object specified in the SourceRange parameter.
EndToStart Moves the end of the specified IHTMLTxtRange object to the start of the IHTMLTxtRange object specified in the SourceRange parameter.
EndToEnd Moves the end of the specified IHTMLTxtRange object to the end of the IHTMLTxtRange object specified in the SourceRange parameter.

SourceRange    Required IHTMLTxtRange. Specifies the range from which the source end point is to be taken.

Applies to | IHTMLTxtRange Object