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)
7426dataObject.SetData(format, autoConvert: false, utf8Stream); 7430dataObject.SetData(format, autoConvert: false, sbContent.ToString()); 7725dataObject.SetData(format, autoConvert: false, utf8Stream); 7729dataObject.SetData(format, autoConvert: false, sbContent.ToString()); 8141dataObject.SetData(format, autoConvert: false, utf8Stream); 8145dataObject.SetData(format, autoConvert: false, sbContent.ToString());
System\Windows\Forms\OLE\DataObject.cs (3)
73internal DataObject(string format, bool autoConvert, object data) : this() => SetData(format, autoConvert, data); 171SetData(DataFormats.FileDropConstant, true, strings); 185SetData(ConvertToDataFormats(format), false, textData);
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
171dataObject.SetData(format, autoConvert, input);
System\Windows\Forms\DataObjectTests.cs (17)
904.Setup(o => o.SetData(DataFormats.WaveAudio, false, audioStream)) 907mockDataObject.Verify(o => o.SetData(DataFormats.WaveAudio, false, audioStream), Times.Once()); 1048dataObject.SetData(DataFormats.Dib, autoConvert: true, image); 1104dataObject.SetData(format, autoConvert, input); 1128dataObject.SetData(DataFormats.Dib, autoConvert: true, image); 1171dataObject.SetData(format, autoConvert, data); 1206((Action)(() => dataObject.SetData(null, true, new object()))).Should() 1208((Action)(() => dataObject.SetData(null, false, new object()))).Should() 1223action = () => dataObject.SetData(format, true, new object()); 1226action = () => 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[]>())) 1280mockDataObject.Verify(o => o.SetData(DataFormats.FileDrop, true, It.IsAny<string[]>()), Times.Once()); 1338.Setup(o => o.SetData(DataFormats.Bitmap, true, image)) 1341mockDataObject.Verify(o => o.SetData(DataFormats.Bitmap, true, image), Times.Once()); 1511.Setup(o => o.SetData(expectedFormat, false, textData)) 1514mockDataObject.Verify(o => o.SetData(expectedFormat, false, textData), Times.Once());