Range

open external class Range

Exposes the JavaScript Range to Kotlin

Constructors

Link copied to clipboard
fun Range()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun collapse(toStart: Boolean = definedExternally)
Link copied to clipboard
fun compareBoundaryPoints(how: Short, sourceRange: Range): Short
Link copied to clipboard
fun comparePoint(node: Node, offset: Int): Short
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun detach()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun insertNode(node: Node)
Link copied to clipboard
fun intersectsNode(node: Node): Boolean
Link copied to clipboard
fun isPointInRange(node: Node, offset: Int): Boolean
Link copied to clipboard
fun selectNode(node: Node)
Link copied to clipboard
Link copied to clipboard
fun setEnd(node: Node, offset: Int)
Link copied to clipboard
fun setEndAfter(node: Node)
Link copied to clipboard
fun setEndBefore(node: Node)
Link copied to clipboard
fun setStart(node: Node, offset: Int)
Link copied to clipboard
fun setStartAfter(node: Node)
Link copied to clipboard
fun setStartBefore(node: Node)
Link copied to clipboard
fun surroundContents(newParent: Node)

Properties

Link copied to clipboard
open val collapsed: Boolean
Link copied to clipboard
Link copied to clipboard
open val endContainer: Node
Link copied to clipboard
open val endOffset: Int
Link copied to clipboard
Link copied to clipboard
open val startOffset: Int