Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

moveEnd method

Changes the end position of the range.

Syntax

var retval = TextRange.moveEnd(Unit, Count);

Parameters

Unit [in]

Type: String

String that specifies the units to move, using one of the following values:

character

Moves one or more characters.

word

Moves one or more words. A word is a collection of characters terminated by a space or some 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.

Count [in, optional]

Type: Integer

Integer that specifies the number of units to move. This can be positive or negative. The default is 1.

Return value

Type: Integer

Integer that returns the number of units moved.

Standards information

There are no standards that apply here.

Remarks

This feature might not be available on non-Microsoft Win32 platforms.

See also

TextRange
Reference
move
moveStart

 

 

Show:
© 2017 Microsoft