📅  最后修改于: 2022-03-11 14:49:08.610000             🧑  作者: Mango
using System.Windows.Forms; //required
Clipboard.SetText("your string");
//FOR .NET CORE
Install-Package TextCopy
TextCopy.ClipboardService.SetText("Text to place in clipboard");