Method SetDataObject
SetDataObject(IDataObject?)
Sets data to the clipboard.
public static void SetDataObject(IDataObject? value)Parameters
- valueIDataObject
- The data to place on the clipboard. 
SetDataObject(IDataObject?, bool)
Places a specified data object on the system Clipboard and accepts a Boolean parameter that indicates whether the data object should be left on the Clipboard when the application exits.
public static void SetDataObject(IDataObject? data, bool copy)Parameters
- dataIDataObject
- A data object (an object that implements IDataObject) to place on the system Clipboard. 
- copybool
- true to leave the data on the system clipboard when the application exits; false to clear the data from the system Clipboard when the application exits.