Returns a specified Range from a selection. The Range is specified by an index and cannot be greater than the number that is returned by IHTMLSelection::rangeCount.
HRESULT getRangeAt( long index, IHTMLDOMRange **ppRange );
- [in] An long that specifies the zero-based index of the Range to retrieve.
- [out, retval] The address of a pointer to a variable that receives an IHTMLDOMRange interface.
Returns S_OK if successful, or an error value otherwise.
Currently, Internet Explorer 9 does not support multiple or disjointed selections in standards mode. A selection always has one Range only. Raises an INDEX_SIZE_ERR DOMException if the value of index is out of range.