Selection class

Annotations
  • DocsEditable()
  • DomName('Selection')

Instance Properties

anchorNode Node
read-only
anchorOffset int
read-only
baseNode Node
read-only
baseOffset int
read-only
extentNode Node
read-only
extentOffset int
read-only
focusNode Node
read-only
focusOffset int
read-only
isCollapsed bool
read-only
rangeCount int
read-only
type String
read-only

Instance Methods

addRange(Range range) → void
collapse(Node node, [int offset]) → void
collapseToEnd() → void
collapseToStart() → void
containsNode(Node node, bool allowPartial) → bool
deleteFromDocument() → void
empty() → void
extend(Node node, [int offset]) → void
getRangeAt(int index) → Range
modify(String alter, String direction, String granularity) → void
removeAllRanges() → void
selectAllChildren(Node node) → void
setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) → void
setPosition(Node node, [int offset]) → void