Implemented interface member:
method
SetData
System.Windows.Forms.IDataObject.SetData(System.Object)
13 references to SetData
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2183iwdata.SetData(data);
System\Windows\Forms\OLE\DataObject.cs (3)
74SetData(data); 122/// If <see cref="DataObject"/> needs to be set, JSON serialize the data held in <paramref name="data"/> using this method, then use <see cref="SetData(object?)"/> 141/// If custom JSON serialization behavior is needed, manually JSON serialize the data and then use <see cref="SetData(object?)"/>,
System.Windows.Forms.Tests (9)
System\Windows\Forms\DataObjectTests.cs (9)
698dataObject.SetData(bitmap2); 773dataObject.SetData(bitmap2); 1089dataObject.SetData(data); 1103dataObject.SetData(data1); 1104dataObject.SetData(data2); 1120dataObject.SetData(data1); 1121dataObject.SetData(data2); 1149dataObject.SetData(data); 1157((Action)(() => dataObject.SetData(null))).Should().Throw<ArgumentNullException>().WithParameterName("data");