Implemented interface member:
method
SetData
System.Windows.Forms.IDataObject.SetData(System.String, System.Object)
20 references to SetData
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
StringCopyPaste\WpfStringCopyPasteService.cs (2)
43copy.SetData(format, dataObject.GetData(format)); 46copy.SetData(GetFormat(key), data);
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2186iwdata.SetData(typeof(ToolStripItem).ToString(), data);
System\Windows\Forms\OLE\DataObject.cs (1)
71public DataObject(string format, object data) : this() => SetData(format, data);
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
109dataObject.SetData(format, input);
System\Windows\Forms\DataObjectTests.cs (14)
220dataObject.SetData(DataFormats.WaveAudio, result); 510dataObject.SetData(DataFormats.FileDrop, result); 541dataObject.SetData("format1", "data1"); 548dataObject.SetData("format2", bitmap1); 613dataObject.SetData("format1", "data1"); 622dataObject.SetData("format2", bitmap1); 680dataObject.SetData(DataFormats.Bitmap, result); 720dataObject.SetData(DataFormats.UnicodeText, result); 786dataObject.SetData(expectedFormat, result); 1022dataObject.SetData(format, input); 1088dataObject.SetData(format, data); 1204((Action)(() => dataObject.SetData((string)null, new object()))).Should() 1220Action action = () => dataObject.SetData(format, new object()); 2496native.SetData(customFormat, "custom");
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
308data.SetData(DataFormats.Serializable, listViewItem);