set_text


Description:

public void set_text (string text, int len)

Sets the contents of the clipboard to the given UTF-8 string.

GTK+ will make a copy of the text and take responsibility for responding for requests for the text, and for converting the text into the requested format.

Parameters:

this

a Clipboard object

text

a UTF-8 string.

len

length of text, in bytes, or -1, in which case the length will be determined with size.