18 references to SetData
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
174Clipboard.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)
232Clipboard.SetData(format, data!); 244Action action = () => Clipboard.SetData(format!, "data"); 253Action action = () => Clipboard.SetData("MyData", data: null!); 368() => Clipboard.SetData("format", data: null!), 532Clipboard.SetData(format, Color.Black); 546Clipboard.SetData(format, new FileNotFoundException()); 717Clipboard.SetData("TestData", expected); 730Clipboard.SetData(format, expected); 806Clipboard.SetData(format, expected); 820Clipboard.SetData(format, expected); 838Clipboard.SetData(format, expected); 842Clipboard.SetData(format, expected); 862Clipboard.SetData("test", value); 1093Clipboard.SetData(format, data);
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
24Clipboard.SetData("Embed Source", memoryStream);