DHTML Methods
Changes the scope of the range by moving its end position.
iMoved = TextRange.moveEnd ( sUnit [ , iCount ] )
sUnit |
Required. Units to move. This can be one of the following:
character |
Moves one or more characters. |
word |
Moves one or more words. A word is a collection of characters terminated by a space or other white-space character, such as a tab. |
sentence |
Moves one or more sentences. A sentence is a collection of words terminated by a punctuation character, such as a period. |
textedit |
Moves to the start or end of the original range. | |
iCount |
Optional. Number of units to move. This can be positive or negative. The default is 1. |
Integer. Returns the actual number of units moved.
This feature might not be available on non-Win32® platforms. See the Microsoft® Knowledge Base for the latest information on Internet Explorer® cross-platform compatibility.
TextRange
move, moveStart