Range

open external class Range(source)

Exposes the JavaScript Range to Kotlin

Since Kotlin

1.1

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Since Kotlin 1.1

Properties

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

Functions

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