119 references to DataObject
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
StringCopyPaste\WpfStringCopyPasteService.cs (1)
38var copy = new DataObject();
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7142DataObject dataObject = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2177iwdata = new DataObject(); 2182iwdata = new DataObject();
System\Windows\Forms\OLE\DataObject.cs (2)
71public DataObject(string format, object data) : this() => SetData(format, data); 73internal DataObject(string format, bool autoConvert, object data) : this() => SetData(format, autoConvert, data);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.BehaviorDataObject.cs (1)
18public BehaviorDataObject(List<IComponent> dragComponents, Control source, DropSourceBehavior sourceBehavior) : base()
System\Windows\Forms\Design\ToolStripItemDataObject.cs (1)
11internal ToolStripItemDataObject(List<ToolStripItem> dragComponents, ToolStripItem primarySelection, ToolStrip owner) : base()
System.Windows.Forms.Tests (109)
System\Windows\Forms\ClipboardTests.cs (1)
535DataObject data = new();
System\Windows\Forms\ControlTests.Methods.cs (1)
1817yield return new object[] { new DataObject(), 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 (67)
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(); 333DataObject dataObject = new(); 371DataObject dataObject = new(); 455DataObject dataObject = new(); 490DataObject dataObject = new(); 509DataObject dataObject = new(); 533DataObject dataObject = new(); 540DataObject dataObject = new(); 605DataObject dataObject = new(); 612DataObject dataObject = new(); 659DataObject dataObject = new(); 679DataObject dataObject = new(); 703DataObject dataObject = new(); 719DataObject dataObject = new(); 744DataObject dataObject = new(); 785DataObject dataObject = new(); 810DataObject dataObject = new(); 825DataObject dataObject = new(); 868DataObject dataObject = new(); 883DataObject dataObject = new(); 926DataObject dataObject = new(); 942DataObject dataObject = new(); 956DataObject dataObject = new(); 973DataObject dataObject = new(); 1010DataObject dataObject = new(); 1021DataObject dataObject = new(); 1047DataObject dataObject = new(); 1103DataObject dataObject = new(); 1127DataObject dataObject = new(); 1203DataObject dataObject = new(); 1219DataObject dataObject = new(); 1233DataObject dataObject = new(); 1248DataObject dataObject = new(); 1299DataObject dataObject = new(); 1308DataObject dataObject = new(); 1361DataObject dataObject = new(); 1376DataObject dataObject = new(); 1455DataObject dataObject = new(); 1534DataObject dataObject = new(); 1545DataObject dataObject = new(); 1611DataObject dataObject = new(); 1647DataObject dataObject = new(); 1671DataObject dataObject = new(); 1720DataObject dataObject = new(); 1862DataObject dataObject = new(); 1935DataObject dataObject = new(); 2054DataObject dataObject = new(); 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 (1)
10152yield return new object[] { new DataObject(), 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 (2)
DragDropTests.cs (2)
86DataObject data = new(); 300DataObject data = new();