Range class - dart:html library (original) (raw)

Annotations

Constructors

Range()

factory

Range.fromPoint(Point<num> point)

factory

Properties

collapsedbool

no setter

commonAncestorContainerNode

no setter

endContainerNode

no setter

endOffsetint

no setter

hashCodeint

The hash code for this object.

no setterinherited

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

startContainerNode

no setter

startOffsetint

no setter

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

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

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

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited

Static Properties

supportsCreateContextualFragmentbool

Checks if createContextualFragment is supported.

no setter

Constants

END_TO_END → const int

END_TO_START → const int

START_TO_END → const int

START_TO_START → const int