Selection class

Annotations
  • @Native("Selection")

Properties

anchorNodeNode?
read-only
anchorOffsetint?
read-only
baseNodeNode?
read-only
baseOffsetint?
read-only
extentNodeNode?
read-only
extentOffsetint?
read-only
focusNodeNode?
read-only
focusOffsetint?
read-only
hashCodeint
read-only, inherited
The hash code for this object. [...]
isCollapsedbool?
read-only
rangeCountint?
read-only
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
typeString?
read-only

Methods

addRange(Range range) → void
collapse(Node? node, [int? offset]) → void
collapseToEnd() → void
collapseToStart() → void
containsNode(Node node, [bool? allowPartialContainment]) → bool
deleteFromDocument() → void
empty() → void
extend(Node node, [int? offset]) → void
getRangeAt(int index) → Range
modify(String? alter, String? direction, String? granularity) → void
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
removeAllRanges() → void
removeRange(Range range) → void
selectAllChildren(Node node) → void
setBaseAndExtent(Node? baseNode, int baseOffset, Node? extentNode, int extentOffset) → void
setPosition(Node? node, [int? offset]) → void
toString() → String
inherited
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

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