代码如下:
static void CopyString(string str) { TextEditor te = new TextEditor(); te.text = str; te.SelectAll(); te.Copy(); }