Click to return to the Reusing Browser Technology home page    
IHTMLTxtRange::move Metho...     IHTMLTxtRange::moveStart ...     IHTMLTxtRange Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLTxtRange::moveEnd Method


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

Syntax

HRESULT moveEnd(
    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, moveStart


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.