Click to return to the Reusing Browser Technology home page    
IHTMLTxtRange::moveEnd Me...     IHTMLTxtRange::moveToBook...     IHTMLTxtRange Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLTxtRange::moveStart Method


Changes the scope of the range by moving the start position of the range.

Syntax

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

Parameters

Unit
String that specifies 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 that specifies 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.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

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.