Implemented interface member:
method
SetData
System.Windows.Forms.IDataObject.SetData(System.String, System.Object)
35 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 (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2178iwdata.SetData(typeof(ToolStripItem).ToString(), data);
System\Windows\Forms\OLE\DataObject.cs (3)
82public DataObject(string format, object data) : this() => SetData(format, data); 107public void SetDataAsJson<T>(string format, T data) => SetData(format, TryJsonSerialize(format, data)); 129/// it is recommended to use the <see cref="SetData(string, object?)"/> APIs to avoid unnecessary overhead.
System.Windows.Forms.Tests (28)
System\Windows\Forms\ClipboardTests.cs (1)
996data.SetData("Mystring", "test");
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
110dataObject.SetData(format, input);
System\Windows\Forms\DataObjectTests.cs (16)
228dataObject.SetData(DataFormats.WaveAudio, result); 656dataObject.SetData(DataFormats.FileDrop, result); 687dataObject.SetData("format1", "data1"); 694dataObject.SetData("format2", bitmap1); 759dataObject.SetData("format1", "data1"); 768dataObject.SetData("format2", bitmap1); 826dataObject.SetData(DataFormats.Bitmap, result); 866dataObject.SetData(DataFormats.UnicodeText, result); 932dataObject.SetData(expectedFormat, result); 1191dataObject.SetData(format, input); 1220dataObject.SetData(format, input); 1297dataObject.SetData(format, data); 1486((Action)(() => dataObject.SetData((string)null, new object()))).Should() 1502Action action = () => dataObject.SetData(format, new object()); 2805native.SetData(customFormat, "custom"); 2882data.SetData("Mystring", "test");
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (10)
33native.SetData(format, 1); 49native.SetData(format, 1); 67native.SetData(format, 1); 81native.SetData(format, value); 154native.SetData(format, value); 167native.SetData(format, value); 183native.SetData(format, value); 198native.SetData(format, value); 212native.SetData(format, value); 420native.SetData(format, value);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
312data.SetData(DataFormats.Serializable, listViewItem);