This topic has not yet been rated - Rate this topic

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 null value 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
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ