W3cubDocs

/Dart 2

Range class

Annotations
  • @Unstable()
  • @Native("Range")

Constructors

Range()
factory
Range.fromPoint(Point<num> point)
factory

Properties

collapsedbool
final
commonAncestorContainerNode
final
endContainerNode
final
endOffsetint
final
startContainerNode
final
startOffsetint
final
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

cloneContents() → DocumentFragment
cloneRange() → Range
collapse([bool toStart ]) → void
compareBoundaryPoints(int how, Range sourceRange) → int
comparePoint(Node node, int offset) → int
createContextualFragment(String fragment) → DocumentFragment
deleteContents() → void
detach() → void
expand(String unit) → void
extractContents() → DocumentFragment
getBoundingClientRect() → Rectangle<num>
getClientRects() → List<Rectangle<num>>
insertNode(Node node) → void
isPointInRange(Node node, int offset) → bool
selectNode(Node node) → void
selectNodeContents(Node node) → void
setEnd(Node node, int offset) → void
setEndAfter(Node node) → void
setEndBefore(Node node) → void
setStart(Node node, int offset) → void
setStartAfter(Node node) → void
setStartBefore(Node node) → void
surroundContents(Node newParent) → void
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

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

Static Properties

supportsCreateContextualFragmentbool
read-only
Checks if createContextualFragment is supported. [...]

Constants

END_TO_END → const int
2
END_TO_START → const int
3
START_TO_END → const int
1
START_TO_START → const int
0

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