Range
Constructors
Properties
collapsed
open val collapsed: BooleancommonAncestorContainer
open val commonAncestorContainer: NodeendContainer
open val endContainer: NodeendOffset
open val endOffset: IntstartContainer
open val startContainer: NodestartOffset
open val startOffset: IntFunctions
cloneContents
fun cloneContents(): DocumentFragmentcloneRange
fun cloneRange(): Rangecollapse
fun collapse(toStart: Boolean = definedExternally)compareBoundaryPoints
fun compareBoundaryPoints(
how: Short,
sourceRange: Range
): ShortcomparePoint
fun comparePoint(node: Node, offset: Int): ShortcreateContextualFragment
fun createContextualFragment(
fragment: String
): DocumentFragmentdeleteContents
fun deleteContents()detach
fun detach()extractContents
fun extractContents(): DocumentFragmentgetBoundingClientRect
fun getBoundingClientRect(): DOMRectgetClientRects
fun getClientRects(): Array<DOMRect>insertNode
fun insertNode(node: Node)intersectsNode
fun intersectsNode(node: Node): BooleanisPointInRange
fun isPointInRange(node: Node, offset: Int): BooleanselectNode
fun selectNode(node: Node)selectNodeContents
fun selectNodeContents(node: Node)setEndAfter
fun setEndAfter(node: Node)setEndBefore
fun setEndBefore(node: Node)setStartAfter
fun setStartAfter(node: Node)setStartBefore
fun setStartBefore(node: Node)surroundContents
fun surroundContents(newParent: Node)Companion Object Properties
END_TO_END
val END_TO_END: ShortEND_TO_START
val END_TO_START: ShortSTART_TO_END
val START_TO_END: ShortSTART_TO_START
val START_TO_START: Short