insert_text


Description:

public bool insert_text (int position, string text, int length) throws Error

Inserts text into an EditableText object.

As with all character offsets, the specified position may not be the same as the resulting byte offset, since the text is in a variable-width encoding.

Parameters:

this

a pointer to the EditableText object to modify.

position

a int indicating the character offset at which to insert the new text.

text

a string representing the text to insert, in UTF-8 encoding.

length

the number of characters of text to insert, in bytes. If the byte count of text is less than or equal to length, the entire contents of text will be inserted.

Returns:

TRUE if the operation was successful, otherwise FALSE.




2022 vala-language.org