Click to return to the Reusing Browser Technology home page    
IHTMLTextContainer Method     IHTMLTextContainer::get_o...     IHTMLTextContainer Interf...    
Web Workshop  |  Reusing Browser Technology

IHTMLTextContainer::createControlRange Method


Creates a selection range object for control-based selection rather than text-based selection. If there are currently controls selected in the text container, the control range is initialized with them; otherwise, it is created empty and controls need to be explicitly added to it. This is opposite of the text range, which defaults to the whole text container if there is no selection. This returns an IHTMLControlRange object.

Syntax

HRESULT createControlRange( 
    IDispatch **range 
);

Parameters

range
Address of a pointer to a variable of IDispatch type.

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


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.