取决于我是否回答标题或文本中的问题...您可以访问System.Windows.Clipboard而无需访问System.Windows.Forms ...
string textData = "I want to put this string on the clipboard.";
// After this call, the data (string) is placed on the clipboard and tagged
// with a data format of "Text".
System.Windows.Clipboard.SetData(DataFormats.Text, (Object)textData);
Run Code Online (Sandbox Code Playgroud)