getRangeAt method

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 rangeCount.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1Internet Explorer 9

 

Syntax

var ppRange = HTMLSelection.getRangeAt(index);

Parameters

index [in]

Type: Integer

An Integer that specifies the zero-based index of the Range to retrieve.

ppRange [out, retval]

Type: IHTMLDOMRange

Returns an object if successful.

Return value

Type: IHTMLDOMRange

Returns an object if successful.

Standards information

Remarks

Currently, Windows Internet Explorer 9 does not support multiple or disjointed selections in standards mode. A selection always has one Range only. Raises an IndexSizeError DOMException if the value of index is out of range. Versions earlier than Internet Explorer 10 will throw the exception as INDEX_SIZE_ERR.

See also

HTMLSelection

 

 

Show:
© 2014 Microsoft