setEndPointsetEndPoint*
*



Contents  *



Index  *Topic Contents
*Previous Topic: setAttribute
*Next Topic: setInterval

setEndPoint

Description

Sets the end point of one range based on the end point of another. This method takes two parameters: a string that describes the end points to transfer, and a range from which the source end point will be taken.

Syntax

object.setEndPoint(type, range)

ParameterDescription
type String that describes the end point to transfer. 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

No return value.

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.

Example

The following JScript example sets the start point of the current range (r1) to the end point of the second range (r2).

r1.setEndPoint("StartToEnd", r2);

Applies To

TextRange


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