Implemented interface member:
method
SetData
System.Windows.Forms.IDataObject.SetData(System.String, System.Boolean, System.Object)
27 references to SetData
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
7426
dataObject.
SetData
(format, autoConvert: false, utf8Stream);
7430
dataObject.
SetData
(format, autoConvert: false, sbContent.ToString());
7725
dataObject.
SetData
(format, autoConvert: false, utf8Stream);
7729
dataObject.
SetData
(format, autoConvert: false, sbContent.ToString());
8141
dataObject.
SetData
(format, autoConvert: false, utf8Stream);
8145
dataObject.
SetData
(format, autoConvert: false, sbContent.ToString());
System\Windows\Forms\OLE\DataObject.cs (3)
73
internal DataObject(string format, bool autoConvert, object data) : this() =>
SetData
(format, autoConvert, data);
171
SetData
(DataFormats.FileDropConstant, true, strings);
185
SetData
(ConvertToDataFormats(format), false, textData);
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
171
dataObject.
SetData
(format, autoConvert, input);
System\Windows\Forms\DataObjectTests.cs (17)
904
.Setup(o => o.
SetData
(DataFormats.WaveAudio, false, audioStream))
907
mockDataObject.Verify(o => o.
SetData
(DataFormats.WaveAudio, false, audioStream), Times.Once());
1048
dataObject.
SetData
(DataFormats.Dib, autoConvert: true, image);
1104
dataObject.
SetData
(format, autoConvert, input);
1128
dataObject.
SetData
(DataFormats.Dib, autoConvert: true, image);
1171
dataObject.
SetData
(format, autoConvert, data);
1206
((Action)(() => dataObject.
SetData
(null, true, new object()))).Should()
1208
((Action)(() => dataObject.
SetData
(null, false, new object()))).Should()
1223
action = () => dataObject.
SetData
(format, true, new object());
1226
action = () => dataObject.
SetData
(format, false, new object());
1234
((Action)(() => dataObject.
SetData
(DataFormats.Dib, false, new Bitmap(10, 10))))
1277
.Setup(o => o.
SetData
(DataFormats.FileDrop, true, It.IsAny<string[]>()))
1280
mockDataObject.Verify(o => o.
SetData
(DataFormats.FileDrop, true, It.IsAny<string[]>()), Times.Once());
1338
.Setup(o => o.
SetData
(DataFormats.Bitmap, true, image))
1341
mockDataObject.Verify(o => o.
SetData
(DataFormats.Bitmap, true, image), Times.Once());
1511
.Setup(o => o.
SetData
(expectedFormat, false, textData))
1514
mockDataObject.Verify(o => o.
SetData
(expectedFormat, false, textData), Times.Once());