18 references to SetData
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
174
Clipboard.
SetData
(format, data)
System.Windows.Forms (2)
System\Windows\Forms\OLE\Clipboard.cs (2)
534
/// it is recommended to use the <see cref="
SetData
(string, object?)"/> APIs to avoid unnecessary overhead.
546
/// If custom JSON serialization behavior is needed, manually JSON serialize the data and then use <see cref="
SetData
"/>
System.Windows.Forms.Tests (15)
System\Windows\Forms\ClipboardTests.cs (14)
232
Clipboard.
SetData
(format, data!);
244
Action action = () => Clipboard.
SetData
(format!, "data");
253
Action action = () => Clipboard.
SetData
("MyData", data: null!);
368
() => Clipboard.
SetData
("format", data: null!),
532
Clipboard.
SetData
(format, Color.Black);
546
Clipboard.
SetData
(format, new FileNotFoundException());
717
Clipboard.
SetData
("TestData", expected);
730
Clipboard.
SetData
(format, expected);
806
Clipboard.
SetData
(format, expected);
820
Clipboard.
SetData
(format, expected);
838
Clipboard.
SetData
(format, expected);
842
Clipboard.
SetData
(format, expected);
862
Clipboard.
SetData
("test", value);
1093
Clipboard.
SetData
(format, data);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
24
Clipboard.
SetData
("Embed Source", memoryStream);