set_text


Description:

public bool set_text (string str, int len)

Sets the contents of the selection from a UTF-8 encoded string.

The string is converted to the form determined by this->target.

Parameters:

this

a SelectionData

str

a UTF-8 string

len

the length of str, or -1 if str is nul-terminated.

Returns:

true if the selection was successfully set, otherwise false.




2022 vala-language.org