1 type derived from DragEventArgs
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ToolboxSnapDragDropEventArgs.cs (1)
14internal sealed partial class ToolboxSnapDragDropEventArgs : DragEventArgs
33 instantiations of DragEventArgs
System.Windows.Forms (7)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (4)
130? new DragEventArgs(_lastDataObject, 136: new DragEventArgs(_lastDataObject, 231? new DragEventArgs(_lastDataObject, 237: new DragEventArgs(_lastDataObject,
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
211DragEventArgs dragEnterArgs = new(e.Data, e.KeyState, e.X, e.Y, e.AllowedEffect, e.Effect, e.DropImageType, e.Message, e.MessageReplacementToken)
System\Windows\Forms\OLE\DropTarget.cs (2)
79? new DragEventArgs(data, (int)grfKeyState, pt.x, pt.y, (DragDropEffects)pdwEffect, _lastEffect) 80: new DragEventArgs(
System.Windows.Forms.Tests (26)
System\Windows\Forms\ControlTests.Handlers.cs (1)
1302yield return new object[] { new DragEventArgs(null, 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move) };
System\Windows\Forms\DragDropHelperTests.cs (8)
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") };
System\Windows\Forms\DragEventArgsTests.cs (6)
25DragEventArgs e = new(data, keyState, x, y, allowedEffect, effect); 39DragEventArgs e = new(data, keyState, x, y, allowedEffect, effect, dropImageType, message, messageReplacementToken); 56DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move) 68DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Copy to %1", "Documents") 80DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Documents") 92DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Desktop")
System\Windows\Forms\RichTextBoxTests.cs (3)
10734DragEventArgs dragEventArgs = new DragEventArgs( 10762DragEventArgs dragEventArgs = new DragEventArgs( 10811DragEventArgs dragEventArgs = new DragEventArgs(
System\Windows\Forms\ToolStripControlHostTests.cs (1)
3345yield return new object[] { new DragEventArgs(null, 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move) };
System\Windows\Forms\ToolStripItemTests.cs (1)
10991yield return new object[] { new DragEventArgs(null, 0, 0, 0, DragDropEffects.None, DragDropEffects.None) };
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (6)
28DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 39DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 52DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 63DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 76DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 87DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None);
193 references to DragEventArgs
System.Windows.Forms (47)
System\Windows\Forms\Control.cs (7)
7501protected virtual void OnDragEnter(DragEventArgs drgevent) 7511protected virtual void OnDragOver(DragEventArgs drgevent) 7531protected virtual void OnDragDrop(DragEventArgs drgevent) 9035protected void RaiseDragEvent(object key, DragEventArgs e) 12698void IDropTarget.OnDragEnter(DragEventArgs drgEvent) => OnDragEnter(drgEvent); 12700void IDropTarget.OnDragOver(DragEventArgs drgEvent) => OnDragOver(drgEvent); 12704void IDropTarget.OnDragDrop(DragEventArgs drgEvent) => OnDragDrop(drgEvent);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (5)
21private DragEventArgs? _lastDragEventArgs; 129DragEventArgs e = _lastDragEventArgs is null 230DragEventArgs e = _lastDragEventArgs is null 286private bool CanShowImage(DragEventArgs e) 289private void UpdateDropDescription(DragEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
488private void HandleDragDrop(object? sender, DragEventArgs e) => OnDragDrop(e); 490private void HandleDragEnter(object? sender, DragEventArgs e) => OnDragEnter(e); 494private void HandleDragOver(object? sender, DragEventArgs e) => OnDragOver(e);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (5)
59public void OnDragEnter(DragEventArgs e) 98public void OnDragOver(DragEventArgs e) 143public void OnDragDrop(DragEventArgs e) 191private void UpdateDropTarget(IDropTarget? newTarget, DragEventArgs e) 211DragEventArgs dragEnterArgs = new(e.Data, e.KeyState, e.X, e.Y, e.AllowedEffect, e.Effect, e.DropImageType, e.Message, e.MessageReplacementToken)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (7)
2646void IDropTarget.OnDragEnter(DragEventArgs dragEvent) => OnDragEnter(dragEvent); 2648void IDropTarget.OnDragOver(DragEventArgs dragEvent) => OnDragOver(dragEvent); 2652void IDropTarget.OnDragDrop(DragEventArgs dragEvent) => OnDragDrop(dragEvent); 2731protected virtual void OnDragEnter(DragEventArgs dragEvent) 2739protected virtual void OnDragOver(DragEventArgs dragEvent) 2755protected virtual void OnDragDrop(DragEventArgs dragEvent) 3071internal void RaiseDragEvent(object key, DragEventArgs e) => ((DragEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
21public void OnDragEnter(DragEventArgs e) 35public void OnDragDrop(DragEventArgs e) 44public void OnDragOver(DragEventArgs e)
System\Windows\Forms\OLE\DragDropHelper.cs (4)
75public static void DragEnter(HWND targetWindowHandle, DragEventArgs e) 120public static void DragOver(DragEventArgs e) 136public static void Drop(DragEventArgs e) 381public static void SetDropDescription(DragEventArgs e)
System\Windows\Forms\OLE\DragEventArgs.cs (5)
13/// Initializes a new instance of the <see cref="DragEventArgs"/> class. 27/// Initializes a new instance of the <see cref="DragEventArgs"/> class. 110internal DragEventArgs Clone() 112return (DragEventArgs)MemberwiseClone(); 115internal bool Equals(DragEventArgs? dragEventArgs)
System\Windows\Forms\OLE\DragEventHandler.cs (1)
11public delegate void DragEventHandler(object? sender, DragEventArgs e);
System\Windows\Forms\OLE\DropTarget.cs (4)
16private DragEventArgs? _lastDragEventArgs; 61private DragEventArgs? CreateDragEventArgs(Com.IDataObject* pDataObj, MODIFIERKEYS_FLAGS grfKeyState, POINTL pt, Ole.DROPEFFECT pdwEffect) 78DragEventArgs dragEvent = _lastDragEventArgs is null 192private void UpdateDropDescription(DragEventArgs e)
System\Windows\Forms\OLE\ISupportOleDropTarget.cs (3)
8void OnDragEnter(DragEventArgs e); 10void OnDragDrop(DragEventArgs e); 11void OnDragOver(DragEventArgs e);
System.Windows.Forms.Design (85)
System\Windows\Forms\Design\Behavior\Behavior.cs (3)
273public virtual void OnDragDrop(Glyph? g, DragEventArgs e) 288public virtual void OnDragEnter(Glyph? g, DragEventArgs e) 318public virtual void OnDragOver(Glyph? g, DragEventArgs e)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (4)
161protected override void OnDragDrop(DragEventArgs e) 173private static bool IsLocalDrag(DragEventArgs e) 200protected override void OnDragEnter(DragEventArgs e) 240protected override void OnDragOver(DragEventArgs e)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (4)
39private DragEventArgs? _validDragArgs; // if valid - this is used to fabricate drag enter/leave events 630private void OnDragEnter(Glyph? g, DragEventArgs e) 720private void OnDragDrop(DragEventArgs e) 815private void OnDragOver(DragEventArgs e)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (2)
107private ToolboxSnapDragDropEventArgs CreateToolboxSnapArgs(DragEventArgs e, Point mouseLoc) 251public override void OnDragDrop(Glyph g, DragEventArgs e)
System\Windows\Forms\Design\Behavior\ToolboxSnapDragDropEventArgs.cs (1)
21public ToolboxSnapDragDropEventArgs(SnapDirection snapDirections, Point offset, DragEventArgs origArgs)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (3)
218public override void OnDragDrop(Glyph? glyph, DragEventArgs e) 289public override void OnDragEnter(Glyph? glyph, DragEventArgs e) 299public override void OnDragOver(Glyph? glyph, DragEventArgs e)
System\Windows\Forms\Design\ComponentTray.cs (6)
669void ISelectionUIHandler.OleDragEnter(DragEventArgs de) => GetOleDragHandler().DoOleDragEnter(de); 671void ISelectionUIHandler.OleDragDrop(DragEventArgs de) => GetOleDragHandler().DoOleDragDrop(de); 673void ISelectionUIHandler.OleDragOver(DragEventArgs de) => GetOleDragHandler().DoOleDragOver(de); 1065protected override void OnDragDrop(DragEventArgs de) 1112protected override void OnDragEnter(DragEventArgs de) 1159protected override void OnDragOver(DragEventArgs de)
System\Windows\Forms\Design\ControlDesigner.cs (7)
650private void OnDragEnter(object? s, DragEventArgs e) 658private void OnDragOver(object? s, DragEventArgs e) => OnDragOver(e); 660private void OnDragDrop(object? s, DragEventArgs e) 1229protected virtual void OnDragEnter(DragEventArgs de) 1242protected virtual void OnDragComplete(DragEventArgs de) 1250protected virtual void OnDragDrop(DragEventArgs de) 1277protected virtual void OnDragOver(DragEventArgs de)
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (3)
35public override void OnDragDrop(Glyph? g, DragEventArgs e) 44public override void OnDragEnter(Glyph? g, DragEventArgs e) 66public override void OnDragOver(Glyph? g, DragEventArgs e)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
248internal virtual bool CanDropComponents(DragEventArgs de)
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (4)
562private void ReorderControls(DragEventArgs de) 749protected override void OnDragEnter(DragEventArgs de) 786protected override void OnDragOver(DragEventArgs de) 898protected override void OnDragDrop(DragEventArgs de)
System\Windows\Forms\Design\FlowPanelDesigner.cs (1)
39protected override void OnDragDrop(DragEventArgs de)
System\Windows\Forms\Design\ISelectionUIHandler.cs (3)
76void OleDragEnter(DragEventArgs de); 77void OleDragDrop(DragEventArgs de); 78void OleDragOver(DragEventArgs de);
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
588public void DoOleDragDrop(DragEventArgs de) 859public void DoOleDragEnter(DragEventArgs de) 946public void DoOleDragOver(DragEventArgs de) 1035public static object[]? GetDraggingObjects(DragEventArgs de) => GetDraggingObjects(de.Data);
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
1368protected override void OnDragComplete(DragEventArgs de) 1379protected override void OnDragDrop(DragEventArgs de) 1448protected override void OnDragEnter(DragEventArgs de) 1611private void PerformDragEnter(DragEventArgs de, IDesignerHost host) 1655protected override void OnDragOver(DragEventArgs de)
System\Windows\Forms\Design\SelectionUIHandler.cs (3)
586public virtual void OleDragEnter(DragEventArgs de) 590public virtual void OleDragDrop(DragEventArgs de) 594public virtual void OleDragOver(DragEventArgs de)
System\Windows\Forms\Design\SelectionUIService.cs (3)
453protected override void OnDragEnter(DragEventArgs devent) 463protected override void OnDragOver(DragEventArgs devent) 483protected override void OnDragDrop(DragEventArgs devent)
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
155protected override void OnDragEnter(DragEventArgs de) => de.Effect = DragDropEffects.None;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
50protected override void OnDragEnter(DragEventArgs de) 61protected override void OnDragOver(DragEventArgs de) 82protected override void OnDragDrop(DragEventArgs de)
System\Windows\Forms\Design\TabControlDesigner.cs (3)
498protected override void OnDragEnter(DragEventArgs de) 536protected override void OnDragDrop(DragEventArgs de) 566protected override void OnDragOver(DragEventArgs de)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
460private void ControlAddedInternal(Control control, Point newControlPosition, bool localReposition, bool fullTable, DragEventArgs de) 951private Control ExtractControlFromDragEvent(DragEventArgs de) 1306protected override void OnDragEnter(DragEventArgs de) 1329protected override void OnDragDrop(DragEventArgs de) 1379protected override void OnDragOver(DragEventArgs de)
System\Windows\Forms\Design\TabPageDesigner.cs (3)
30internal void OnDragDropInternal(DragEventArgs de) => OnDragDrop(de); 32internal void OnDragEnterInternal(DragEventArgs de) => OnDragEnter(de); 36internal void OnDragOverInternal(DragEventArgs e) => OnDragOver(e);
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
1779protected override void OnDragEnter(DragEventArgs de) 1785protected override void OnDragOver(DragEventArgs de) 1794protected override void OnDragDrop(DragEventArgs de) 2275private void SetDragDropEffects(DragEventArgs de)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
643public override void OnDragDrop(Glyph g, DragEventArgs e) 842public override void OnDragEnter(Glyph g, DragEventArgs e) 878public override void OnDragOver(Glyph g, DragEventArgs e)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
2647public override void OnDragEnter(Glyph g, DragEventArgs e) 2662public override void OnDragOver(Glyph g, DragEventArgs e) 2677public override void OnDragDrop(Glyph g, DragEventArgs e)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
513private void treeView1_DragEnter(object sender, DragEventArgs e) 525private void treeView1_DragDrop(object sender, DragEventArgs e) 569private void treeView1_DragOver(object sender, DragEventArgs e)
System.Windows.Forms.Tests (39)
System\Windows\Forms\ControlTests.cs (3)
1272public new void OnDragDrop(DragEventArgs e) => base.OnDragDrop(e); 1274public new void OnDragEnter(DragEventArgs e) => base.OnDragEnter(e); 1278public new void OnDragOver(DragEventArgs e) => base.OnDragOver(e);
System\Windows\Forms\ControlTests.Handlers.cs (3)
1307public void Control_OnDragDrop_Invoke_CallsDragDrop(DragEventArgs eventArgs) 1331public void Control_OnDragEnter_Invoke_CallsDragEnter(DragEventArgs eventArgs) 1379public void Control_OnDragOver_Invoke_CallsDragOver(DragEventArgs eventArgs)
System\Windows\Forms\DragDropHelperTests.cs (1)
266public unsafe void SetDropDescription_DragEventArgs_ReturnsExpected(DragEventArgs e)
System\Windows\Forms\DragEventArgsTests.cs (6)
25DragEventArgs e = new(data, keyState, x, y, allowedEffect, effect); 39DragEventArgs e = new(data, keyState, x, y, allowedEffect, effect, dropImageType, message, messageReplacementToken); 56DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move) 68DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Copy to %1", "Documents") 80DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Documents") 92DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Desktop")
System\Windows\Forms\RichTextBoxTests.cs (5)
10734DragEventArgs dragEventArgs = new DragEventArgs( 10762DragEventArgs dragEventArgs = new DragEventArgs( 10811DragEventArgs dragEventArgs = new DragEventArgs( 11004public new void OnDragDrop(DragEventArgs e) => base.OnDragDrop(e); 11008public new void OnDragOver(DragEventArgs e) => base.OnDragOver(e);
System\Windows\Forms\ToolStripControlHostTests.cs (6)
3350public void ToolStripControlHost_OnSubscribeControlEvents_InvokeDragDrop_Success(DragEventArgs eventArgs) 3370public void ToolStripControlHost_OnSubscribeControlEvents_InvokeDragEnter_Success(DragEventArgs eventArgs) 3410public void ToolStripControlHost_OnSubscribeControlEvents_InvokeDragOver_Success(DragEventArgs eventArgs) 4566public new void OnDragDrop(DragEventArgs e) => base.OnDragDrop(e); 4568public new void OnDragEnter(DragEventArgs e) => base.OnDragEnter(e); 4572public new void OnDragOver(DragEventArgs e) => base.OnDragOver(e);
System\Windows\Forms\ToolStripItemTests.cs (9)
10996public void ToolStripItem_OnDragDrop_Invoke_CallsDragDrop(DragEventArgs eventArgs) 11020public void ToolStripItem_OnDragEnter_Invoke_CallsDragEnter(DragEventArgs eventArgs) 11068public void ToolStripItem_OnDragOver_Invoke_CallsDragOver(DragEventArgs eventArgs) 15293public void ToolStripItem_IDropTargetOnDragDrop_Invoke_CallsDragDrop(DragEventArgs eventArgs) 15318public void ToolStripItem_IDropTargetOnDragEnter_Invoke_CallsDragEnter(DragEventArgs eventArgs) 15368public void ToolStripItem_IDropTargetOnDragOver_Invoke_CallsDragOver(DragEventArgs eventArgs) 15543public new void OnDragDrop(DragEventArgs e) => base.OnDragDrop(e); 15545public new void OnDragEnter(DragEventArgs e) => base.OnDragEnter(e); 15549public new void OnDragOver(DragEventArgs e) => base.OnDragOver(e);
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (6)
28DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 39DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 52DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 63DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 76DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None); 87DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.None, DragDropEffects.None);
System.Windows.Forms.UI.IntegrationTests (8)
DragDropTests.cs (8)
811private void ListDragTarget_DragOver(object? sender, DragEventArgs e) 880private void ListDragTarget_DragDrop(object? sender, DragEventArgs e) 927private void ListDragTarget_DragEnter(object? sender, DragEventArgs e) 1067private void DragAcceptItem_DragEnter(object? sender, DragEventArgs e) 1094private void PictureBoxDragSource_DragOver(object? sender, DragEventArgs e) 1102private void RichTextBoxDropTarget_DragDrop(object? sender, DragEventArgs e) 1117private void RichTextBoxDropTarget_DragEnter(object? sender, DragEventArgs e) 1133private void PictureBoxDragSource_DragEnter(object? sender, DragEventArgs e)
TrimTest (3)
Form1.cs (3)
17private void textBox1_DragOver(object sender, DragEventArgs e) 25private void textBox1_DragEnter(object sender, DragEventArgs e) 33private void textBox1_DragDrop(object sender, DragEventArgs e)
WinFormsControlsTest (11)
DragDrop.cs (11)
99private void DragDrop_DragEnter(object? sender, DragEventArgs e) 105private void PictureBox_DragEnter(object? sender, DragEventArgs e) 155private void PictureBox_DragDrop(object? sender, DragEventArgs e) 209private void TextBox_DragDrop(object? sender, DragEventArgs e) 224private void TextBox_DragEnter(object? sender, DragEventArgs e) 268private void TextBox_DragOver(object? sender, DragEventArgs e) 310private void RichTextBox_DragEnter(object? sender, DragEventArgs e) 343private void RichTextBox_DragDrop(object? sender, DragEventArgs e) 511private void DragAcceptItem_DragEnter(object? sender, DragEventArgs e) 518private void NyanCatItem_DragEnter(object? sender, DragEventArgs e) 525private void AsciiCatItem_DragEnter(object? sender, DragEventArgs e)