119 references to DataObject
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
StringCopyPaste\WpfStringCopyPasteService.cs (1)
38
var copy = new
DataObject
();
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7142
DataObject dataObject =
new
();
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2177
iwdata = new
DataObject
();
2182
iwdata = new
DataObject
();
System\Windows\Forms\OLE\DataObject.cs (2)
71
public DataObject(string format, object data) :
this
() => SetData(format, data);
73
internal 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)
18
public BehaviorDataObject(List<IComponent> dragComponents, Control source, DropSourceBehavior sourceBehavior) :
base
()
System\Windows\Forms\Design\ToolStripItemDataObject.cs (1)
11
internal ToolStripItemDataObject(List<ToolStripItem> dragComponents, ToolStripItem primarySelection, ToolStrip owner) :
base
()
System.Windows.Forms.Tests (109)
System\Windows\Forms\ClipboardTests.cs (1)
535
DataObject data =
new
();
System\Windows\Forms\ControlTests.Methods.cs (1)
1817
yield return new object[] { new
DataObject
(), allowedEffects };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (4)
47
DataObject dataObject =
new
();
74
DataObject dataObject =
new
();
108
DataObject dataObject =
new
();
170
DataObject dataObject =
new
();
System\Windows\Forms\DataObjectTests.cs (67)
59
DataObject dataObject =
new
();
82
DataObject dataObject =
new
();
105
DataObject dataObject =
new
();
128
DataObject dataObject =
new
();
152
DataObject dataObject =
new
();
191
DataObject dataObject =
new
();
198
DataObject dataObject =
new
();
219
DataObject dataObject =
new
();
249
DataObject dataObject =
new
();
333
DataObject dataObject =
new
();
371
DataObject dataObject =
new
();
455
DataObject dataObject =
new
();
490
DataObject dataObject =
new
();
509
DataObject dataObject =
new
();
533
DataObject dataObject =
new
();
540
DataObject dataObject =
new
();
605
DataObject dataObject =
new
();
612
DataObject dataObject =
new
();
659
DataObject dataObject =
new
();
679
DataObject dataObject =
new
();
703
DataObject dataObject =
new
();
719
DataObject dataObject =
new
();
744
DataObject dataObject =
new
();
785
DataObject dataObject =
new
();
810
DataObject dataObject =
new
();
825
DataObject dataObject =
new
();
868
DataObject dataObject =
new
();
883
DataObject dataObject =
new
();
926
DataObject dataObject =
new
();
942
DataObject dataObject =
new
();
956
DataObject dataObject =
new
();
973
DataObject dataObject =
new
();
1010
DataObject dataObject =
new
();
1021
DataObject dataObject =
new
();
1047
DataObject dataObject =
new
();
1103
DataObject dataObject =
new
();
1127
DataObject dataObject =
new
();
1203
DataObject dataObject =
new
();
1219
DataObject dataObject =
new
();
1233
DataObject dataObject =
new
();
1248
DataObject dataObject =
new
();
1299
DataObject dataObject =
new
();
1308
DataObject dataObject =
new
();
1361
DataObject dataObject =
new
();
1376
DataObject dataObject =
new
();
1455
DataObject dataObject =
new
();
1534
DataObject dataObject =
new
();
1545
DataObject dataObject =
new
();
1611
DataObject dataObject =
new
();
1647
DataObject dataObject =
new
();
1671
DataObject dataObject =
new
();
1720
DataObject dataObject =
new
();
1862
DataObject dataObject =
new
();
1935
DataObject dataObject =
new
();
2054
DataObject dataObject =
new
();
2097
DataObject dataObject =
new
();
2140
DataObject dataObject =
new
();
2177
DataObject dataObject =
new
();
2199
DataObject dataObject =
new
();
2220
DataObject dataObject =
new
();
2261
DataObject dataObject =
new
();
2300
DataObject dataObject =
new
();
2319
DataObject dataObject =
new
();
2343
DataObject dataObject =
new
();
2368
DataObject dataObject =
new
();
2414
yield return new object[] { new
DataObject
() };
2492
DataObject native =
new
();
System\Windows\Forms\DragDropHelperTests.cs (29)
18
yield return new object[] { new
DataObject
(), new Bitmap(1, 1), new Point(1, 1), false };
19
yield return new object[] { new
DataObject
(), null, new Point(1, 1), false };
20
yield return new object[] { new
DataObject
(), new Bitmap(1, 1), new Point(1, 1), true };
25
yield return new object[] { new
DataObject
(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), false) };
26
yield return new object[] { new
DataObject
(), new GiveFeedbackEventArgs(DragDropEffects.All, false, null, new Point(0, 0), false) };
27
yield return new object[] { new
DataObject
(), new GiveFeedbackEventArgs(DragDropEffects.All, false, new Bitmap(1, 1), new Point(0, 0), true) };
32
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Invalid, string.Empty, string.Empty) };
33
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.None, string.Empty, string.Empty) };
34
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Copy, "Copy to %1", "Documents") };
35
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Move, "Move to %1", "Documents") };
36
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Link, "Create link in %1", "Documents") };
37
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Label, "Update metadata in %1", "Document") };
38
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Warning, "A problem has been encountered", string.Empty) };
39
yield return new object[] { new DragEventArgs(new
DataObject
(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.NoImage, "Copy to %1", "Documents") };
44
yield return new object[] { new
DataObject
(), DropImageType.Invalid, string.Empty, string.Empty };
45
yield return new object[] { new
DataObject
(), DropImageType.None, string.Empty, string.Empty };
46
yield return new object[] { new
DataObject
(), DropImageType.Copy, "Copy to %1", "Documents" };
47
yield return new object[] { new
DataObject
(), DropImageType.Move, "Move to %1", "Documents" };
48
yield return new object[] { new
DataObject
(), DropImageType.Link, "Create link in %1", "Documents" };
49
yield return new object[] { new
DataObject
(), DropImageType.Label, "Update metadata in %1", "Document" };
50
yield return new object[] { new
DataObject
(), DropImageType.Warning, "A problem has been encountered", string.Empty };
51
yield return new object[] { new
DataObject
(), DropImageType.NoImage, "Copy to %1", "Documents" };
56
yield return new object[] { new
DataObject
(), DropImageType.Copy, new string('*', (int)PInvokeCore.MAX_PATH), string.Empty };
57
yield return new object[] { new
DataObject
(), DropImageType.Copy, string.Empty, new string('*', (int)PInvokeCore.MAX_PATH) };
62
yield return new object[] { new
DataObject
(), true };
63
yield return new object[] { new
DataObject
(), false };
157
Assert.Throws<InvalidOperationException>(() => DragDropHelper.SetDragImage(new
DataObject
(), bitmap, new Point(0, 0), false));
173
Assert.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)
10152
yield return new object[] { new
DataObject
(), allowedEffects };
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (6)
26
DataObject dataObject =
new
();
38
DataObject dataObject =
new
();
50
DataObject dataObject =
new
();
62
DataObject dataObject =
new
();
74
DataObject dataObject =
new
();
86
DataObject dataObject =
new
();
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
86
DataObject data =
new
();
300
DataObject data =
new
();