Share via


TextRange.setEndPoint Method

SharePoint Designer Developer Reference

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

Syntax

expression.setEndPoint(how, SourceRange)

expression   Required. A variable that represents a TextRange object.

Parameters

Name Required/Optional Data Type Description
expression Required TextRange An expression that returns a TextRange object.
how Required String Specifies the end point to transfer. The how parameter may be one of the following values:
Value Description
StartToStart

Moves the start of the specified TextRange object to the start of the TextRange object specified in the SourceRange parameter.

StartToEnd

Moves the start of the specified TextRange object to the end of the TextRange object specified in the SourceRange parameter.

EndToStart

Moves the end of the specified TextRange object to the start of the TextRange object specified in the SourceRange parameter.

EndToEnd

Moves the end of the specified TextRange object to the end of the TextRange object specified in the SourceRange parameter.

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

See Also