Click to return to the DHTML, HTML     
moveRow Method     moveTo Method     DHTML Methods    
Web Workshop  |  DHTML, HTML & CSS

moveStart Method


Changes the start position of the range.

Syntax

iMoved = TextRange.moveStart(sUnit [, iCount])

Parameters

sUnitRequired. String that specifies the units to move, using one of the following values:
characterMoves one or more characters.
wordMoves one or more words. A word is a collection of characters terminated by a space or other white-space character, such as a tab.
sentenceMoves one or more sentences. A sentence is a collection of words terminated by a punctuation character, such as a period.
texteditMoves to the start or end of the original range.
iCountOptional. Integer that specifies the number of units to move. This can be positive or negative. The default is 1.

Return Value

Integer. Returns the number of units moved.

Remarks

This feature might not be available on non-Win32® platforms. For the latest information about Internet Explorer cross-platform compatibility, wee article Q172976 Non-MSDN link in the Microsoft Knowledge Base.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

TextRange

See Also

move, moveEnd



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.