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

Syntax

var ppRange = HTMLSelection.getRangeAt(index);

Parameters

index [in]

Type: Integer

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

Return value

Type: IHTMLDOMRange

Returns an object if successful.

Standards information

Remarks

Currently, a Windows Store app using JavaScript 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 a Windows Store app using JavaScript will throw the exception as INDEX_SIZE_ERR.

See also

HTMLSelection

 

 

Show:
© 2014 Microsoft