Method SetDataObject
SetDataObject(IDataObject?)
Sets data to the clipboard.
public static void SetDataObject(IDataObject? value)
Parameters
valueIDataObjectThe 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
dataIDataObjectA data object (an object that implements IDataObject) to place on the system Clipboard.
copybooltrue 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.