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)
43
copy.
SetData
(format, dataObject.GetData(format));
46
copy.
SetData
(GetFormat(key), data);
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2178
iwdata.
SetData
(typeof(ToolStripItem).ToString(), data);
System\Windows\Forms\OLE\DataObject.cs (3)
82
public DataObject(string format, object data) : this() =>
SetData
(format, data);
107
public 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)
996
data.
SetData
("Mystring", "test");
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
110
dataObject.
SetData
(format, input);
System\Windows\Forms\DataObjectTests.cs (16)
228
dataObject.
SetData
(DataFormats.WaveAudio, result);
656
dataObject.
SetData
(DataFormats.FileDrop, result);
687
dataObject.
SetData
("format1", "data1");
694
dataObject.
SetData
("format2", bitmap1);
759
dataObject.
SetData
("format1", "data1");
768
dataObject.
SetData
("format2", bitmap1);
826
dataObject.
SetData
(DataFormats.Bitmap, result);
866
dataObject.
SetData
(DataFormats.UnicodeText, result);
932
dataObject.
SetData
(expectedFormat, result);
1191
dataObject.
SetData
(format, input);
1220
dataObject.
SetData
(format, input);
1297
dataObject.
SetData
(format, data);
1486
((Action)(() => dataObject.
SetData
((string)null, new object()))).Should()
1502
Action action = () => dataObject.
SetData
(format, new object());
2805
native.
SetData
(customFormat, "custom");
2882
data.
SetData
("Mystring", "test");
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (10)
33
native.
SetData
(format, 1);
49
native.
SetData
(format, 1);
67
native.
SetData
(format, 1);
81
native.
SetData
(format, value);
154
native.
SetData
(format, value);
167
native.
SetData
(format, value);
183
native.
SetData
(format, value);
198
native.
SetData
(format, value);
212
native.
SetData
(format, value);
420
native.
SetData
(format, value);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
312
data.
SetData
(DataFormats.Serializable, listViewItem);