9 references to SetDataObject
System.Windows.Forms (6)
System\Windows\Forms\OLE\Clipboard.cs (6)
20
public static void SetDataObject(object data) =>
SetDataObject
(data, copy: false);
279
SetDataObject
(new DataObject(DataFormats.WaveAudioConstant, audioStream.OrThrowIfNull()), copy: true);
292
SetDataObject
(new DataObject(format, data), copy: true);
318
SetDataObject
(new DataObject(DataFormats.FileDropConstant, autoConvert: true, filePathsArray), copy: true);
325
SetDataObject
(new DataObject(DataFormats.BitmapConstant, autoConvert: true, image.OrThrowIfNull()), copy: true);
340
SetDataObject
(new DataObject(ConvertToDataFormats(format), text), copy: true);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ClipboardTests.cs (3)
290
Clipboard.
SetDataObject
(data, copy);
329
() => Clipboard.
SetDataObject
(null!, copy: true),
361
() => Clipboard.
SetDataObject
(null!, copy: true),