insert

fun insert(offset: Int, text: @Nls CharSequence)

Inserts text at offset, shifting following content right.

Parameters

offset

the buffer position the text lands at, from 0 through the current length.

text

the characters inserted; the run carries no attributes of its own.

See also


fun insert(offset: Int, text: @Nls CharSequence, attributes: AttributeSet)

Inserts text carrying attributes at offset, shifting following content right.

Parameters

offset

the buffer position the text lands at, from 0 through the current length.

text

the characters inserted, as one run.

attributes

the attributes that run carries.

See also