Method clipboardData.AddText
Overload
Adds text.
public clipboardData AddText(string text, int format = 13)
Parameters
text (string)
Text. |
format (int)
Clipboard format id. Default: ClipFormats.Text (CF_UNICODETEXT). Text encoding depends on format; default UTF-16. See ClipFormats.Register. |
Returns
clipboardData
this. |
Exceptions
ArgumentNullException |
ArgumentException
Invalid format. |
Exception
Exceptions of System.Text.Encoding.GetBytes, which is called if encoding is not UTF-16. |