Range class

Inheritance
Annotations
  • @DomName('Range')
  • @Unstable()

Constants

END_TO_ENDint
@DocsEditable(), @DomName('Range.END_TO_END')
2
END_TO_STARTint
@DocsEditable(), @DomName('Range.END_TO_START')
3
START_TO_ENDint
@DocsEditable(), @DomName('Range.START_TO_END')
1
START_TO_STARTint
@DocsEditable(), @DomName('Range.START_TO_START')
0

Static Properties

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

Checks if createContextualFragment is supported.

Constructors

Range()
factory
Range.fromPoint(Point point)
factory
Range.internal_()

Properties

collapsedbool
@DocsEditable(), @DomName('Range.collapsed'), read-only
commonAncestorContainerNode
@DocsEditable(), @DomName('Range.commonAncestorContainer'), read-only
endContainerNode
@DocsEditable(), @DomName('Range.endContainer'), read-only
endOffsetint
@DocsEditable(), @DomName('Range.endOffset'), read-only
startContainerNode
@DocsEditable(), @DomName('Range.startContainer'), read-only
startOffsetint
@DocsEditable(), @DomName('Range.startOffset'), 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

cloneContents() → DocumentFragment
@DocsEditable(), @DomName('Range.cloneContents')
cloneRange() → Range
@DocsEditable(), @DomName('Range.cloneRange')
collapse([bool toStart ]) → void
compareBoundaryPoints(int how, Range sourceRange) → int
@DocsEditable(), @DomName('Range.compareBoundaryPoints'), @Experimental()
comparePoint(Node node, int offset) → int
@DocsEditable(), @DomName('Range.comparePoint')
createContextualFragment(String fragment) → DocumentFragment
@DocsEditable(), @DomName('Range.createContextualFragment')
deleteContents() → void
@DocsEditable(), @DomName('Range.deleteContents')
detach() → void
@DocsEditable(), @DomName('Range.detach')
expand(String unit) → void
@DocsEditable(), @DomName('Range.expand'), @Experimental()
extractContents() → DocumentFragment
@DocsEditable(), @DomName('Range.extractContents')
getBoundingClientRect() → Rectangle
@DocsEditable(), @DomName('Range.getBoundingClientRect')
getClientRects() → List<Rectangle>
@DocsEditable(), @DomName('Range.getClientRects')
insertNode(Node node) → void
@DocsEditable(), @DomName('Range.insertNode')
isPointInRange(Node node, int offset) → bool
@DocsEditable(), @DomName('Range.isPointInRange')
selectNode(Node node) → void
@DocsEditable(), @DomName('Range.selectNode')
selectNodeContents(Node node) → void
@DocsEditable(), @DomName('Range.selectNodeContents')
setEnd(Node node, int offset) → void
@DocsEditable(), @DomName('Range.setEnd')
setEndAfter(Node node) → void
@DocsEditable(), @DomName('Range.setEndAfter')
setEndBefore(Node node) → void
@DocsEditable(), @DomName('Range.setEndBefore')
setStart(Node node, int offset) → void
@DocsEditable(), @DomName('Range.setStart')
setStartAfter(Node node) → void
@DocsEditable(), @DomName('Range.setStartAfter')
setStartBefore(Node node) → void
@DocsEditable(), @DomName('Range.setStartBefore')
surroundContents(Node newParent) → void
@DocsEditable(), @DomName('Range.surroundContents')
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/Range-class.html