Range

JS
1.1
open class Range
(source)

Exposes the JavaScript Range to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Range to Kotlin

Range ( )

Properties

JS
1.1

collapsed

open val collapsed : Boolean
JS
1.1

commonAncestorContainer

open val commonAncestorContainer : Node
JS
1.1

endContainer

open val endContainer : Node
JS
1.1

endOffset

open val endOffset : Int
JS
1.1

startContainer

open val startContainer : Node
JS
1.1

startOffset

open val startOffset : Int

Functions

JS
1.1

cloneContents

fun cloneContents ( ) : DocumentFragment
JS
1.1

cloneRange

fun cloneRange ( ) : Range
JS
1.1

collapse

fun collapse ( toStart : Boolean = definedExternally )
JS
1.1

compareBoundaryPoints

fun compareBoundaryPoints (
how : Short ,
sourceRange : Range
) : Short
JS
1.1

comparePoint

fun comparePoint ( node : Node , offset : Int ) : Short
JS
1.1

createContextualFragment

fun createContextualFragment (
fragment : String
) : DocumentFragment
JS
1.1

deleteContents

fun deleteContents ( )
JS
1.1

detach

fun detach ( )
JS
1.1

extractContents

fun extractContents ( ) : DocumentFragment
JS
1.1

getBoundingClientRect

fun getBoundingClientRect ( ) : DOMRect
JS
1.1

getClientRects

fun getClientRects ( ) : Array < DOMRect >
JS
1.1

insertNode

fun insertNode ( node : Node )
JS
1.1

intersectsNode

fun intersectsNode ( node : Node ) : Boolean
JS
1.1

isPointInRange

fun isPointInRange ( node : Node , offset : Int ) : Boolean
JS
1.1

selectNode

fun selectNode ( node : Node )
JS
1.1

selectNodeContents

fun selectNodeContents ( node : Node )
JS
1.1

setEnd

fun setEnd ( node : Node , offset : Int )
JS
1.1

setEndAfter

fun setEndAfter ( node : Node )
JS
1.1

setEndBefore

fun setEndBefore ( node : Node )
JS
1.1

setStart

fun setStart ( node : Node , offset : Int )
JS
1.1

setStartAfter

fun setStartAfter ( node : Node )
JS
1.1

setStartBefore

fun setStartBefore ( node : Node )
JS
1.1

surroundContents

fun surroundContents ( newParent : Node )

Companion Object Properties

JS
1.1

END_TO_END

val END_TO_END : Short
JS
1.1

END_TO_START

val END_TO_START : Short
JS
1.1

START_TO_END

val START_TO_END : Short
JS
1.1

START_TO_START

val START_TO_START : Short