Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

rangeCount property

Returns the number of ranges in a selection

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


HRESULT value = object.get_rangeCount(* p);

Property values

Type: long

The number of ranges in a selection.

Standards information


Windows Internet Explorer 9 does not currently support multiple or disjointed selections in standards mode. This property always returns a 1 with a valid selection. It returns a 0 if IHTMLSelection::removeRange or IHTMLSelection::removeAllRanges have been applied, though calling IHTMLSelection::isCollapsed is recommended instead to detect an empty range.



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.