c# 粘贴复制
复制
1. 复制
Clipboard.SetText("123456");
Clipboard.SetImage(Image img);
Clipboard.SetAudio(System.IO.Stream autoStream);
粘贴
IDataObject iData = Clipboard.GetDataObject();
if (iData.GetDataPresent(DataFormats.Text))(格式)
{
string txt = (String)iData.GetData(DataFormats.Text);
}