IHTMLElement2::createControlRange Method
Creates a controlRange collection of nontext elements.
Syntax
HRESULT createControlRange( IDispatch **range );
Parameters
- range
- [out, retval] Address of a pointer to an IDispatch interface for an IHTMLControlRange object if sucessful or a
nullvalue otherwise.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Creates a selection range object for control-based selection rather than text-based selection.
If a controlRange already exists, IHTMLElement2::createControlRange overwrites the existing element; otherwise, it returns a pointer to the element created.
See Also
IHTMLSelectionObject::createRange