17 references to DragEventArgs
System.Windows.Forms (5)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (2)
136
: new
DragEventArgs
(_lastDataObject,
237
: new
DragEventArgs
(_lastDataObject,
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
212
DragEventArgs dragEnterArgs =
new
(e.Data, e.KeyState, e.X, e.Y, e.AllowedEffect, e.Effect, e.DropImageType, e.Message, e.MessageReplacementToken)
System\Windows\Forms\OLE\DragEventArgs.cs (1)
22
:
this
(data, keyState, x, y, allowedEffect, effect, dropImageType: DropImageType.Invalid, message: string.Empty, messageReplacementToken: string.Empty)
System\Windows\Forms\OLE\DropTarget.cs (1)
80
: new
DragEventArgs
(
System.Windows.Forms.Tests (12)
System\Windows\Forms\DragDropHelperTests.cs (8)
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") };
System\Windows\Forms\DragEventArgsTests.cs (4)
39
DragEventArgs e =
new
(data, keyState, x, y, allowedEffect, effect, dropImageType, message, messageReplacementToken);
68
DragEventArgs e =
new
(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Copy to %1", "Documents")
80
DragEventArgs e =
new
(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Documents")
92
DragEventArgs e =
new
(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Desktop")