IHTMLTextContainer::createControlRangeIHTMLTextContainer::createControlRange*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLTextContainer
*Next Topic: IHTMLTextContainer::get_onscroll

IHTMLTextContainer::createControlRange


HRESULT createControlRange( 
    IDispatch **range 
);

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.

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


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