Range

open class Range : JsAny

Exposes the JavaScript Range to Kotlin

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

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

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun collapse(toStart: Boolean)
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
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
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)