asp.net.ph

Skip Navigation Links

moveEnd Method

DHTML Methods


Changes the scope of the range by moving its end position.

Syntax

iMoved = TextRange.moveEnd ( sUnit [ ,  iCount ] ) 
Parameters

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.

Return Value

Integer. Returns the actual number of units moved.

Remarks

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.

Applies To

TextRange

See Also

move, moveStart



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note