41 references to DataObject
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
57clipboard.SetDataObject(new System.Windows.Forms.DataObject(data));
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (1)
4899data is DataObject dataObject ? dataObject : new DataObject(data);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2167iwdata = new DataObject(idataObject);
System\Windows\Forms\OLE\Clipboard.cs (3)
40/// See remarks for <see cref="DataObject(object)"/> for recommendations on how to implement custom <paramref name="data"/>. 57: new DataObject(data) { IsWrappedForClipboard = true }; 503/// See remarks for <see cref="DataObject(object)"/> for recommendations on how to implement custom <paramref name="data"/>.
System\Windows\Forms\OLE\DataObject.cs (2)
36/// <inheritdoc cref="DataObject(object)"/> 42/// <inheritdoc cref="DataObject(object)"/>
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObjectWrapper.cs (1)
11public ComponentDataObjectWrapper(ComponentDataObject dataObject) : base(dataObject)
System.Windows.Forms.Tests (31)
System\Windows\Forms\ClipboardTests.cs (2)
284DataObject dataObject = new(data); 313DataObject dataObject = new(data);
System\Windows\Forms\ControlTests.Methods.cs (1)
1818yield return new object[] { new DataObject("data"), allowedEffects };
System\Windows\Forms\DataObjectTests.cs (27)
300DataObject dataObject = new(mockDataObject.Object); 331DataObject dataObject = new(mockDataObject.Object); 560DataObject dataObject = new(mockDataObject.Object); 591DataObject dataObject = new(mockDataObject.Object); 742DataObject dataObject = new(mockDataObject.Object); 797DataObject dataObject = new(mockDataObject.Object); 1006DataObject dataObject = new(mockDataObject.Object); 1064DataObject dataObject = new(mockDataObject.Object); 1148DataObject dataObject = new(mockDataObject.Object); 1296DataObject dataObject = new(mockDataObject.Object); 1452DataObject dataObject = new(mockDataObject.Object); 1477DataObject dataObject = new(mockDataObject.Object); 1573DataObject dataObject = new(mockDataObject.Object); 1635DataObject dataObject = new(mockDataObject.Object); 1713DataObject dataObject = new(mockDataObject.Object); 1807DataObject dataObject = new(mockDataObject.Object); 1835DataObject data = new(new DataObjectIgnoringStorageMediumForEnhancedMetafile()); 1915DataObject dataObject = new(mockComDataObject.Object); 1944DataObject dataObject = new(mockComDataObject.Object); 1983DataObject dataObject = new(mockComDataObject.Object); 2057DataObject dataObject = new(mockDataObject.Object); 2119DataObject dataObject = new(mockDataObject.Object); 2167DataObject dataObject = new(mockDataObject.Object); 2246DataObject dataObject = new(mockDataObject.Object); 2309DataObject dataObject = new(mockDataObject.Object); 2363DataObject dataObject = new(mockComDataObject.Object); 2868DataObject wrapped = new(dataObject);
System\Windows\Forms\ToolStripItemTests.cs (1)
10153yield return new object[] { new DataObject("data"), allowedEffects };
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
274return new DataObject(toolboxItem);