TextRange.Move Method
SharePoint Designer Developer Reference |
Collapses a TextRange object to the start of the range, and then moves the insertion point from the starting point in the range by the specified number of units. Returns a Long that represents the number of units moved.
Syntax
expression.Move(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 the insertion point to the right of the starting point in the range) or negative (moves the insertion point to the left of the starting point in the range). The default is 1. |
Return Value
Long
See Also