4 types derived from DataObject
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.BehaviorDataObject.cs (1)
14internal class BehaviorDataObject : DataObject
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObjectWrapper.cs (1)
9protected class ComponentDataObjectWrapper : DataObject
System\Windows\Forms\Design\ToolStripItemDataObject.cs (1)
9internal class ToolStripItemDataObject : DataObject
System.Windows.Forms.Tests (1)
System\Windows\Forms\DataObjectTests.cs (1)
2385private class DerivedDataObject : DataObject { }
163 instantiations of DataObject
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
StringCopyPaste\WpfStringCopyPasteService.cs (1)
38var copy = new DataObject();
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
54clipboard.SetDataObject(new System.Windows.Forms.DataObject(data));
System.Windows.Forms (11)
System\Windows\Forms\Control.cs (1)
4858data is DataObject dataObject ? dataObject : new DataObject(data);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7142DataObject dataObject = new();
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
122_lastDataObject = new DataObject(lpdataobj);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
2175iwdata = new DataObject(idataObject); 2185iwdata = new DataObject(); 2190iwdata = new DataObject();
System\Windows\Forms\OLE\Clipboard.cs (4)
46: new DataObject(data) { IsWrappedForClipboard = true }; 292SetDataObject(new DataObject(format, data), copy: true); 318SetDataObject(new DataObject(DataFormats.FileDropConstant, autoConvert: true, filePathsArray), copy: true); 340SetDataObject(new DataObject(ConvertToDataFormats(format), text), copy: true);
System\Windows\Forms\OLE\DropTarget.cs (1)
58return new DataObject(nativeDataObject);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\CommandSet.cs (2)
1415IDataObject dataObj = new DataObject(CF_DESIGNER, bytes); 1460IDataObject dataObj = new DataObject(CF_DESIGNER, bytes);
System.Windows.Forms.Tests (139)
System\Windows\Forms\ClipboardTests.cs (3)
275DataObject dataObject = new(data); 304DataObject dataObject = new(data); 535DataObject data = new();
System\Windows\Forms\ControlTests.Methods.cs (2)
1817yield return new object[] { new DataObject(), allowedEffects }; 1818yield return new object[] { new DataObject("data"), allowedEffects };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (4)
47DataObject dataObject = new(); 74DataObject dataObject = new(); 108DataObject dataObject = new(); 170DataObject dataObject = new();
System\Windows\Forms\DataObjectTests.cs (93)
59DataObject dataObject = new(); 82DataObject dataObject = new(); 105DataObject dataObject = new(); 128DataObject dataObject = new(); 152DataObject dataObject = new(); 191DataObject dataObject = new(); 198DataObject dataObject = new(); 219DataObject dataObject = new(); 249DataObject dataObject = new(); 292DataObject dataObject = new(mockDataObject.Object); 323DataObject dataObject = new(mockDataObject.Object); 333DataObject dataObject = new(); 371DataObject dataObject = new(); 414DataObject dataObject = new(mockDataObject.Object); 445DataObject dataObject = new(mockDataObject.Object); 455DataObject dataObject = new(); 490DataObject dataObject = new(); 509DataObject dataObject = new(); 533DataObject dataObject = new(); 540DataObject dataObject = new(); 596DataObject dataObject = new(mockDataObject.Object); 605DataObject dataObject = new(); 612DataObject dataObject = new(); 651DataObject dataObject = new(mockDataObject.Object); 659DataObject dataObject = new(); 679DataObject dataObject = new(); 703DataObject dataObject = new(); 719DataObject dataObject = new(); 744DataObject dataObject = new(); 785DataObject dataObject = new(); 810DataObject dataObject = new(); 825DataObject dataObject = new(); 860DataObject dataObject = new(mockDataObject.Object); 868DataObject dataObject = new(); 883DataObject dataObject = new(); 918DataObject dataObject = new(mockDataObject.Object); 926DataObject dataObject = new(); 942DataObject dataObject = new(); 956DataObject dataObject = new(); 973DataObject dataObject = new(); 1002DataObject dataObject = new(mockDataObject.Object); 1010DataObject dataObject = new(); 1021DataObject dataObject = new(); 1047DataObject dataObject = new(); 1087DataObject dataObject = new(mockDataObject.Object); 1103DataObject dataObject = new(); 1127DataObject dataObject = new(); 1170DataObject dataObject = new(mockDataObject.Object); 1195DataObject dataObject = new(mockDataObject.Object); 1203DataObject dataObject = new(); 1219DataObject dataObject = new(); 1233DataObject dataObject = new(); 1248DataObject dataObject = new(); 1291DataObject dataObject = new(mockDataObject.Object); 1299DataObject dataObject = new(); 1308DataObject dataObject = new(); 1353DataObject dataObject = new(mockDataObject.Object); 1361DataObject dataObject = new(); 1376DataObject dataObject = new(); 1431DataObject dataObject = new(mockDataObject.Object); 1455DataObject dataObject = new(); 1525DataObject dataObject = new(mockDataObject.Object); 1534DataObject dataObject = new(); 1545DataObject dataObject = new(); 1553DataObject data = new(new DataObjectIgnoringStorageMediumForEnhancedMetafile()); 1611DataObject dataObject = new(); 1633DataObject dataObject = new(mockComDataObject.Object); 1647DataObject dataObject = new(); 1662DataObject dataObject = new(mockComDataObject.Object); 1671DataObject dataObject = new(); 1701DataObject dataObject = new(mockComDataObject.Object); 1720DataObject dataObject = new(); 1775DataObject dataObject = new(mockDataObject.Object); 1837DataObject dataObject = new(mockDataObject.Object); 1862DataObject dataObject = new(); 1885DataObject dataObject = new(mockDataObject.Object); 1935DataObject dataObject = new(); 1964DataObject dataObject = new(mockDataObject.Object); 2027DataObject dataObject = new(mockDataObject.Object); 2054DataObject dataObject = new(); 2081DataObject dataObject = new(mockComDataObject.Object); 2097DataObject dataObject = new(); 2140DataObject dataObject = new(); 2177DataObject dataObject = new(); 2199DataObject dataObject = new(); 2220DataObject dataObject = new(); 2261DataObject dataObject = new(); 2300DataObject dataObject = new(); 2319DataObject dataObject = new(); 2343DataObject dataObject = new(); 2368DataObject dataObject = new(); 2414yield return new object[] { new DataObject() }; 2492DataObject native = new();
System\Windows\Forms\DragDropHelperTests.cs (29)
18yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), false }; 19yield return new object[] { new DataObject(), null, new Point(1, 1), false }; 20yield return new object[] { new DataObject(), new Bitmap(1, 1), new Point(1, 1), true }; 25yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), false) }; 26yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, null, new Point(0, 0), false) }; 27yield return new object[] { new DataObject(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), true) }; 32yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Invalid, string.Empty, string.Empty) }; 33yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.None, string.Empty, string.Empty) }; 34yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Copy, "Copy to %1", "Documents") }; 35yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Move, "Move to %1", "Documents") }; 36yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Link, "Create link in %1", "Documents") }; 37yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Label, "Update metadata in %1", "Document") }; 38yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Warning, "A problem has been encountered", string.Empty) }; 39yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.NoImage, "Copy to %1", "Documents") }; 44yield return new object[] { new DataObject(), DropImageType.Invalid, string.Empty, string.Empty }; 45yield return new object[] { new DataObject(), DropImageType.None, string.Empty, string.Empty }; 46yield return new object[] { new DataObject(), DropImageType.Copy, "Copy to %1", "Documents" }; 47yield return new object[] { new DataObject(), DropImageType.Move, "Move to %1", "Documents" }; 48yield return new object[] { new DataObject(), DropImageType.Link, "Create link in %1", "Documents" }; 49yield return new object[] { new DataObject(), DropImageType.Label, "Update metadata in %1", "Document" }; 50yield return new object[] { new DataObject(), DropImageType.Warning, "A problem has been encountered", string.Empty }; 51yield return new object[] { new DataObject(), DropImageType.NoImage, "Copy to %1", "Documents" }; 56yield return new object[] { new DataObject(), DropImageType.Copy, new string('*', (int)PInvokeCore.MAX_PATH), string.Empty }; 57yield return new object[] { new DataObject(), DropImageType.Copy, string.Empty, new string('*', (int)PInvokeCore.MAX_PATH) }; 62yield return new object[] { new DataObject(), true }; 63yield return new object[] { new DataObject(), false }; 157Assert.Throws<InvalidOperationException>(() => DragDropHelper.SetDragImage(new DataObject(), bitmap, new Point(0, 0), false)); 173Assert.Throws<ArgumentNullException>(nameof(e), () => DragDropHelper.SetDragImage(new DataObject(), e)); 207() => DragDropHelper.SetDropDescription(new DataObject(), dropImageType, string.Empty, string.Empty));
System\Windows\Forms\ToolStripItemTests.cs (2)
10152yield return new object[] { new DataObject(), allowedEffects }; 10153yield return new object[] { new DataObject("data"), allowedEffects };
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (6)
26DataObject dataObject = new(); 38DataObject dataObject = new(); 50DataObject dataObject = new(); 62DataObject dataObject = new(); 74DataObject dataObject = new(); 86DataObject dataObject = new();
System.Windows.Forms.UI.IntegrationTests (5)
DesignBehaviorsTests.cs (1)
272return new DataObject(toolboxItem);
DragDropTests.cs (4)
86DataObject data = new(); 300DataObject data = new(); 1030DataObject data = new(DataFormats.FileDrop, dropFiles); 1090DataObject data = new(DataFormats.FileDrop, dropFiles);
WinFormsControlsTest (4)
DragDrop.cs (4)
179DataObject data = new(nameof(_nyanCatAscii), _nyanCatAscii); 537DataObject data = new(DataFormats.FileDrop, 555DataObject data = new(nameof(_nyanCatBmp), _nyanCatBmp); 567DataObject data = new(nameof(_nyanCatAscii), _nyanCatAscii);
198 references to DataObject
ComDisabled.Tests (2)
DataObjectComTests.cs (2)
21DataObject inData = accessor.CreateRuntimeDataObjectForDrag(data); 39DataObject inData = accessor.CreateRuntimeDataObjectForDrag(data);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
StringCopyPaste\WpfStringCopyPasteService.cs (1)
38var copy = new DataObject();
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (2)
169''' Saves a <see cref="DataObject"/> to the clipboard. 174Public Sub SetDataObject(data As DataObject)
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1150if (!DataObject.Composition.EnableUnsafeBinaryFormatterInNativeObjectSerialization) 1540if (!DataObject.Composition.EnableUnsafeBinaryFormatterInNativeObjectSerialization)
System\Windows\Forms\Control.cs (3)
4854/// Creates <see cref="DataObject"/> for drag operation. 4857private static DataObject CreateRuntimeDataObjectForDrag(object data) => 4858data is DataObject dataObject ? dataObject : new DataObject(data);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
7122public virtual DataObject? GetClipboardContent() 7142DataObject dataObject = new(); 21857DataObject? dataObject = GetClipboardContent();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2172DataObject? iwdata = null;
System\Windows\Forms\OLE\Clipboard.cs (3)
44DataObject wrappedData = data is DataObject { IsWrappedForClipboard: true } alreadyWrapped 137if (dataObject is DataObject { IsWrappedForClipboard: true } wrappedData)
System\Windows\Forms\OLE\DataObject.cs (7)
30/// Initializes a new instance of the <see cref="DataObject"/> class, with the raw <see cref="Com.IDataObject"/> 36/// Initializes a new instance of the <see cref="DataObject"/> class, which can store arbitrary data. 44/// Initializes a new instance of the <see cref="DataObject"/> class, containing the specified data. 48if (data is DataObject dataObject) 68/// Initializes a new instance of the <see cref="DataObject"/> class, containing the specified data and its 81/// Returns the inner data that the <see cref="DataObject"/> was created with if the original data implemented 83/// This method should only be used if the <see cref="DataObject"/> was created for clipboard purposes.
System\Windows\Forms\OLE\DropTarget.cs (2)
45/// <see cref="IDataObject"/> to be passed out as is. Otherwise, the data will be wrapped in a <see cref="DataObject"/>. 53return dataObject is DataObject winFormsDataObject && winFormsDataObject.OriginalIDataObject is { } originalDataObject
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
131internal DataObject DataObject
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
262else if (e.Data is DataObject && components is null)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
485DataObject data = new ComponentDataObjectWrapper(new ComponentDataObject(_serviceProvider, components));
System.Windows.Forms.Tests (158)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (1)
9using Utilities = System.Windows.Forms.DataObject.Composition.BinaryFormatUtilities;
System\Windows\Forms\ClipboardTests.cs (15)
275DataObject dataObject = new(data); 278DataObject actual = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 292DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 304DataObject dataObject = new(data); 307DataObject actual = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Which; 321DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Which; 535DataObject data = new(); 561var dataObject = clipboardDataObject.Should().BeOfType<DataObject>().Which; 643DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Which;
System\Windows\Forms\DataObject_BitmapBinderTests.cs (1)
15= (SerializationBinder)Activator.CreateInstance(typeof(DataObject).Assembly.GetType("System.Windows.Forms.DataObject+BitmapBinder"));
System\Windows\Forms\DataObjectComTests.cs (2)
22inData.Should().BeAssignableTo<DataObject>(); 40DataObject inData = accessor.CreateRuntimeDataObjectForDrag(data);
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (4)
47DataObject dataObject = new(); 74DataObject dataObject = new(); 108DataObject dataObject = new(); 170DataObject dataObject = new();
System\Windows\Forms\DataObjectTests.cs (118)
59DataObject dataObject = new(); 67Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 82DataObject dataObject = new(); 90Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 105DataObject dataObject = new(); 113Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 128DataObject dataObject = new(); 136Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 152DataObject dataObject = new(); 175Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 191DataObject dataObject = new(); 198DataObject dataObject = new(); 219DataObject dataObject = new(); 228Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 249DataObject dataObject = new(); 271Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 292DataObject dataObject = new(mockDataObject.Object); 323DataObject dataObject = new(mockDataObject.Object); 333DataObject dataObject = new(); 353Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 371DataObject dataObject = new(); 393Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 414DataObject dataObject = new(mockDataObject.Object); 445DataObject dataObject = new(mockDataObject.Object); 455DataObject dataObject = new(); 475Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 490DataObject dataObject = new(); 509DataObject dataObject = new(); 518Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 533DataObject dataObject = new(); 540DataObject dataObject = new(); 567Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 596DataObject dataObject = new(mockDataObject.Object); 605DataObject dataObject = new(); 612DataObject dataObject = new(); 651DataObject dataObject = new(mockDataObject.Object); 659DataObject dataObject = new(); 679DataObject dataObject = new(); 688Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 703DataObject dataObject = new(); 719DataObject dataObject = new(); 728Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 744DataObject dataObject = new(); 785DataObject dataObject = new(); 794Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 810DataObject dataObject = new(); 825DataObject dataObject = new(); 841Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 860DataObject dataObject = new(mockDataObject.Object); 868DataObject dataObject = new(); 883DataObject dataObject = new(); 899Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 918DataObject dataObject = new(mockDataObject.Object); 926DataObject dataObject = new(); 942DataObject dataObject = new(); 956DataObject dataObject = new(); 973DataObject dataObject = new(); 1002DataObject dataObject = new(mockDataObject.Object); 1010DataObject dataObject = new(); 1021DataObject dataObject = new(); 1047DataObject dataObject = new(); 1087DataObject dataObject = new(mockDataObject.Object); 1103DataObject dataObject = new(); 1127DataObject dataObject = new(); 1170DataObject dataObject = new(mockDataObject.Object); 1195DataObject dataObject = new(mockDataObject.Object); 1203DataObject dataObject = new(); 1219DataObject dataObject = new(); 1233DataObject dataObject = new(); 1248DataObject dataObject = new(); 1272Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 1291DataObject dataObject = new(mockDataObject.Object); 1299DataObject dataObject = new(); 1308DataObject dataObject = new(); 1333Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 1353DataObject dataObject = new(mockDataObject.Object); 1361DataObject dataObject = new(); 1376DataObject dataObject = new(); 1412Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 1431DataObject dataObject = new(mockDataObject.Object); 1455DataObject dataObject = new(); 1506Mock<DataObject> mockDataObject = new(MockBehavior.Strict); 1525DataObject dataObject = new(mockDataObject.Object); 1534DataObject dataObject = new(); 1545DataObject dataObject = new(); 1553DataObject data = new(new DataObjectIgnoringStorageMediumForEnhancedMetafile()); 1611DataObject dataObject = new(); 1633DataObject dataObject = new(mockComDataObject.Object); 1647DataObject dataObject = new(); 1662DataObject dataObject = new(mockComDataObject.Object); 1671DataObject dataObject = new(); 1701DataObject dataObject = new(mockComDataObject.Object); 1720DataObject dataObject = new(); 1775DataObject dataObject = new(mockDataObject.Object); 1837DataObject dataObject = new(mockDataObject.Object); 1862DataObject dataObject = new(); 1885DataObject dataObject = new(mockDataObject.Object); 1935DataObject dataObject = new(); 1964DataObject dataObject = new(mockDataObject.Object); 2027DataObject dataObject = new(mockDataObject.Object); 2054DataObject dataObject = new(); 2081DataObject dataObject = new(mockComDataObject.Object); 2097DataObject dataObject = new(); 2140DataObject dataObject = new(); 2177DataObject dataObject = new(); 2199DataObject dataObject = new(); 2220DataObject dataObject = new(); 2261DataObject dataObject = new(); 2300DataObject dataObject = new(); 2319DataObject dataObject = new(); 2343DataObject dataObject = new(); 2368DataObject dataObject = new(); 2427if (data is DataObject) 2449inData.Should().BeAssignableTo<DataObject>(); 2465inData.Should().BeAssignableTo<DataObject>(); 2482inData.Should().BeAssignableTo<DataObject>(); 2492DataObject native = new(); 2498DataObject data = new(ComHelpers.GetComPointer<Com.IDataObject>(native));
System\Windows\Forms\DragDropHelperTests.cs (11)
106public unsafe void SetDragImage_DataObject_Bitmap_Point_bool_ReturnsExpected(DataObject dataObject, Bitmap dragImage, Point cursorOffset, bool useDefaultDragImage) 130public unsafe void SetDragImage_DataObject_GiveFeedbackEventArgs_ReturnsExpected(DataObject dataObject, GiveFeedbackEventArgs e) 163DataObject dataObject = null; 178public unsafe void SetDropDescription_ClearDropDescription_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 212public void SetDropDescription_IsInDragLoop_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 228public void SetDropDescription_LengthExceedsMaxPath_ThrowsArgumentOutOfRangeException(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 236DataObject dataObject = null; 243public unsafe void SetDropDescription_ReleaseDragDropFormats_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 288public unsafe void SetDropDescription_DataObject_DropImageType_string_string_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 313DataObject dataObject = null; 319public unsafe void SetInDragLoop_ReturnsExpected(DataObject dataObject, bool inDragLoop)
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (6)
26DataObject dataObject = new(); 38DataObject dataObject = new(); 50DataObject dataObject = new(); 62DataObject dataObject = new(); 74DataObject dataObject = new(); 86DataObject dataObject = new();
System.Windows.Forms.UI.IntegrationTests (7)
DesignBehaviorsTests.cs (3)
116var dataObject = toolboxService.SerializeToolboxItem(toolboxItem) as DataObject; 186ToolboxItem? item = ((DataObject)serializedObject)?.GetData(typeof(ToolboxItem)) as ToolboxItem;
DragDropTests.cs (4)
86DataObject data = new(); 300DataObject data = new(); 1030DataObject data = new(DataFormats.FileDrop, dropFiles); 1090DataObject data = new(DataFormats.FileDrop, dropFiles);
WinFormsControlsTest (4)
DragDrop.cs (4)
179DataObject data = new(nameof(_nyanCatAscii), _nyanCatAscii); 537DataObject data = new(DataFormats.FileDrop, 555DataObject data = new(nameof(_nyanCatBmp), _nyanCatBmp); 567DataObject data = new(nameof(_nyanCatAscii), _nyanCatAscii);