Highlight

The Highlight interface of the CSS Custom Highlight API is used to represent a collection of Range instances to be styled using the API.

MDN Reference

Constructors

Link copied to clipboard
constructor(vararg initialRanges: AbstractRange)

Properties

Link copied to clipboard

The priority property of the Highlight interface is a number used to determine which highlight's styles should be used to resolve style conflicts in overlapping parts.

Link copied to clipboard
open override val size: Int
Link copied to clipboard

The type property of the Highlight interface is an enumerated String used to specify the meaning of the highlight.

Functions

Link copied to clipboard
open override fun add(value: AbstractRange)
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun delete(value: AbstractRange): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun forEach(action: (value: AbstractRange) -> Unit)
Link copied to clipboard
open operator fun get(key: Symbol.iterator): () -> JsIterator<AbstractRange>
Link copied to clipboard
open override fun has(key: AbstractRange): Boolean
Link copied to clipboard
open override fun keys(): JsIterator<AbstractRange>
Link copied to clipboard
open override fun values(): JsIterator<AbstractRange>