IHTMLTxtRange::collapse Method

Moves the insertion point to the beginning or end of the current range.

Syntax


HRESULT collapse(
    VARIANT_BOOL Start
);

Parameters

Start
[in] VARIANT_BOOL that specifies one of the following values:
true
Default. Moves the insertion point to the beginning of the text range.
false
Moves the insertion point to the end of the text range.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This feature might not be available on non- Microsoft Win32 platforms.

See Also

IHTMLTxtRange::expand
Show: