Selection class

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

Static Properties

instanceRuntimeTypeType
@Deprecated("Internal Use Only"), read-only

Constructors

Selection.internal_()

Properties

anchorNodeNode
@DocsEditable(), @DomName('Selection.anchorNode'), read-only
anchorOffsetint
@DocsEditable(), @DomName('Selection.anchorOffset'), read-only
baseNodeNode
@DocsEditable(), @DomName('Selection.baseNode'), @Experimental(), read-only
baseOffsetint
@DocsEditable(), @DomName('Selection.baseOffset'), @Experimental(), read-only
extentNodeNode
@DocsEditable(), @DomName('Selection.extentNode'), @Experimental(), read-only
extentOffsetint
@DocsEditable(), @DomName('Selection.extentOffset'), @Experimental(), read-only
focusNodeNode
@DocsEditable(), @DomName('Selection.focusNode'), read-only
focusOffsetint
@DocsEditable(), @DomName('Selection.focusOffset'), read-only
isCollapsedbool
@DocsEditable(), @DomName('Selection.isCollapsed'), read-only
rangeCountint
@DocsEditable(), @DomName('Selection.rangeCount'), read-only
typeString
@DocsEditable(), @DomName('Selection.type'), @Experimental(), read-only
hashCodeint
read-only, inherited
runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

addRange(Range range) → void
@DocsEditable(), @DomName('Selection.addRange')
collapse(Node node, [ int offset ]) → void
collapseToEnd() → void
@DocsEditable(), @DomName('Selection.collapseToEnd')
collapseToStart() → void
@DocsEditable(), @DomName('Selection.collapseToStart')
containsNode(Node node, [ bool allowPartialContainment ]) → bool
deleteFromDocument() → void
@DocsEditable(), @DomName('Selection.deleteFromDocument')
empty() → void
@DocsEditable(), @DomName('Selection.empty'), @Experimental()
extend(Node node, [ int offset ]) → void
getRangeAt(int index) → Range
@DocsEditable(), @DomName('Selection.getRangeAt')
modify(String alter, String direction, String granularity) → void
@DocsEditable(), @DomName('Selection.modify'), @Experimental()
removeAllRanges() → void
@DocsEditable(), @DomName('Selection.removeAllRanges')
selectAllChildren(Node node) → void
@DocsEditable(), @DomName('Selection.selectAllChildren')
setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) → void
@DocsEditable(), @DomName('Selection.setBaseAndExtent'), @Experimental()
setPosition(Node node, [ int offset ]) → void
noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

toString() → String
inherited

Returns the result of the JavaScript objects toString method.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/Selection-class.html