collapse method
Collapses (or removes) a range by moving the insertion point to the beginning or end of the current range.
![]() ![]() |
Syntax
var retval = Range.collapse(toStart);Parameters
- toStart [in]
-
Type: Boolean
Specifies one of the following values:
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
|
The operation completed successfully. |
|
detach has been invoked on the object. |
Standards information
See also
Show:

