Implemented interface member:
method
SetData
System.Windows.Forms.IDataObject.SetData(System.String, System.Boolean, System.Object)
29 references to SetData
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (6)
7427dataObject.SetData(format, autoConvert: false, utf8Stream); 7431dataObject.SetData(format, autoConvert: false, sbContent.ToString()); 7726dataObject.SetData(format, autoConvert: false, utf8Stream); 7730dataObject.SetData(format, autoConvert: false, sbContent.ToString()); 8142dataObject.SetData(format, autoConvert: false, utf8Stream); 8146dataObject.SetData(format, autoConvert: false, sbContent.ToString());
System\Windows\Forms\OLE\DataObject.cs (4)
84internal DataObject(string format, bool autoConvert, object data) : this() => SetData(format, autoConvert, data); 149public void SetDataAsJson<T>(string format, bool autoConvert, T data) => SetData(format, autoConvert, TryJsonSerialize(format, data)); 357SetData(DataFormats.FileDropConstant, true, strings); 371SetData(ConvertToDataFormats(format), false, textData);
System.Windows.Forms.Tests (19)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
172dataObject.SetData(format, autoConvert, input);
System\Windows\Forms\DataObjectTests.cs (18)
1050.Setup(o => o.SetData(DataFormats.WaveAudio, false, audioStream)) 1053mockDataObject.Verify(o => o.SetData(DataFormats.WaveAudio, false, audioStream), Times.Once()); 1257dataObject.SetData(DataFormats.Dib, autoConvert: true, image); 1342dataObject.SetData(format, autoConvert, input); 1373dataObject.SetData(format, autoConvert, input); 1410dataObject.SetData(DataFormats.Dib, autoConvert: true, image); 1453dataObject.SetData(format, autoConvert, data); 1488((Action)(() => dataObject.SetData(null, true, new object()))).Should() 1490((Action)(() => dataObject.SetData(null, false, new object()))).Should() 1505action = () => dataObject.SetData(format, true, new object()); 1508action = () => dataObject.SetData(format, false, new object()); 1516((Action)(() => dataObject.SetData(DataFormats.Dib, false, new Bitmap(10, 10)))) 1559.Setup(o => o.SetData(DataFormats.FileDrop, true, It.IsAny<string[]>())) 1562mockDataObject.Verify(o => o.SetData(DataFormats.FileDrop, true, It.IsAny<string[]>()), Times.Once()); 1620.Setup(o => o.SetData(DataFormats.Bitmap, true, image)) 1623mockDataObject.Verify(o => o.SetData(DataFormats.Bitmap, true, image), Times.Once()); 1793.Setup(o => o.SetData(expectedFormat, false, textData)) 1796mockDataObject.Verify(o => o.SetData(expectedFormat, false, textData), Times.Once());