TextRange.moveEnd Method
SharePoint Designer Developer Reference |
Moves the ending position of a TextRange object. Returns a Long that represents the number of units moved.
Syntax
expression.moveEnd(Unit, Count)
expression Required. A variable that represents a TextRange object.
Parameters
Name | Required/Optional | Data Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Unit | Required | String | Specifies the type of unit. Can be one of the following values:
|
||||||||||
Count | Optional | Long | Specifies the number of units to move. This number can be positive (moves range to the right) or negative (moves range to the left). The default is 1. |
Return Value
Long
See Also