|
发表于 2020-8-21 17:00:02
|
显示全部楼层
// Demonstrates SetData, ContainsData, and GetData.
public Object SwapClipboardFormattedData(String format, Object data)
{
Object returnObject = null;
if (System.Windows.Forms.Clipboard.ContainsData(format))
{
returnObject = System.Windows.Forms.Clipboard.GetData(format);
System.Windows.Forms.Clipboard.SetData(format, data);
}
return returnObject;
}
|
|