setEnd method

void setEnd(
  1. Node node,
  2. int offset
)

The Range.setEnd() method sets the end position of a Range to be located at the given offset into the specified node x.Setting the end point above (higher in the document) than the start point will result in a collapsed range with the start and end points both set to the specified end position.

Implementation

external void setEnd(
  Node node,
  int offset,
);