IHTMLTxtRange::moveIHTMLTxtRange::move*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLTxtRange::isEqual
*Next Topic: IHTMLTxtRange::moveEnd

IHTMLTxtRange::move


HRESULT move(
    BSTR Unit,
    long Count,
    long *ActualCount 
);

Collapses the given text range and moves the empty range by the given number of units.

Unit
String specifying the units to move. Can be one of these 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 other white space character.
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
Integer specifying the number of units to move. This can be positive or negative.
ActualCount
Address of a variable that receives the actual number of units moved.

See also moveStart


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.