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)
43
copy.
SetData
(format, dataObject.GetData(format));
46
copy.
SetData
(GetFormat(key), data);
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2186
iwdata.
SetData
(typeof(ToolStripItem).ToString(), data);
System\Windows\Forms\OLE\DataObject.cs (1)
71
public DataObject(string format, object data) : this() =>
SetData
(format, data);
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
108
dataObject.
SetData
(format, input);
System\Windows\Forms\DataObjectTests.cs (14)
220
dataObject.
SetData
(DataFormats.WaveAudio, result);
510
dataObject.
SetData
(DataFormats.FileDrop, result);
541
dataObject.
SetData
("format1", "data1");
548
dataObject.
SetData
("format2", bitmap1);
613
dataObject.
SetData
("format1", "data1");
622
dataObject.
SetData
("format2", bitmap1);
680
dataObject.
SetData
(DataFormats.Bitmap, result);
720
dataObject.
SetData
(DataFormats.UnicodeText, result);
786
dataObject.
SetData
(expectedFormat, result);
1022
dataObject.
SetData
(format, input);
1088
dataObject.
SetData
(format, data);
1204
((Action)(() => dataObject.
SetData
((string)null, new object()))).Should()
1220
Action action = () => dataObject.
SetData
(format, new object());
2496
native.
SetData
(customFormat, "custom");
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
309
data.
SetData
(DataFormats.Serializable, listViewItem);