Method SetDataObject
SetDataObject(IDataObject?)
Clears the Clipboard and then adds data to it.
public static void SetDataObject(IDataObject? value)
Parameters
value
IDataObjectThe 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
data
IDataObjectA data object (an object that implements IDataObject) to place on the system Clipboard.
copy
booltrue 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.