Returns the number of ranges in a selection
HRESULT IHTMLSelection::get_rangeCount(long *p);
- Pointer to a variable of type long that receives The number of ranges in a selection.
Returns S_OK if successful, or an error value otherwise.
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.