setText

fun setText(text: @Nls CharSequence)

Replaces the whole buffer with text.

Parameters

text

the buffer's new content, carrying no attributes of its own; empty text clears it.

See also


fun setText(text: @Nls CharSequence, attributes: AttributeSet)

Replaces the whole buffer with text carrying attributes.

Parameters

text

the buffer's new content, as one run; empty text clears it.

attributes

the attributes that run carries.

See also