set_text


Description:

public void set_text (string text, int len = -1)

Deletes current contents of this, and inserts text instead.

If len is -1, text must be nul-terminated. text must be valid UTF-8.

Parameters:

this

a TextBuffer

text

UTF-8 text to insert

len

length of text in bytes