isCollapsed property
Retrieves whether a selection is collapsed or empty.
Syntax
HRESULT value = object.get_isCollapsed(* p);
Property values
Type: VARIANT_BOOL
One of the following values:
VARIANT_FALSE (false)
The selection is not collapsed.
VARIANT_TRUE (true)
The selection is collapsed or empty.
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 7.6.1
Remarks
A collapsed selection has its start and end points set to the same value, which renders it empty.