28 references to DragAction
System.Windows.Forms (8)
System\Windows\Forms\OLE\DropSource.cs (6)
34DragAction action = DragAction.Continue; 37action = DragAction.Cancel; 44action = DragAction.Drop; 52DragAction.Drop => HRESULT.DRAGDROP_S_DROP, 53DragAction.Cancel => HRESULT.DRAGDROP_S_CANCEL,
System\Windows\Forms\OLE\QueryContinueDragEventArgs.cs (2)
14public QueryContinueDragEventArgs(int keyState, bool escapePressed, DragAction action) 34public DragAction Action { get; set; }
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (4)
1077e.Action = DragAction.Cancel; 1082if (e.Action == DragAction.Continue) 1089if (e.Action == DragAction.Cancel || _lastEffect == DragDropEffects.None) 1097e.Action = DragAction.Cancel;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
945if (e.Action == DragAction.Continue) 952e.Action = DragAction.Cancel;
System.Windows.Forms.Tests (13)
System\Windows\Forms\ControlTests.Handlers.cs (1)
4777yield return new object[] { new QueryContinueDragEventArgs(0, true, DragAction.Drop) };
System\Windows\Forms\QueryContinueDragEventArgsTests.cs (7)
10[InlineData(-1, false, (DragAction.Continue - 1))] 11[InlineData(0, true, DragAction.Drop)] 12public void Ctor_Int_Bool_DragAction(int keyState, bool escapePressed, DragAction action) 21[InlineData((DragAction.Continue - 1))] 22[InlineData(DragAction.Drop)] 23public void Action_Set_GetReturnsExpected(DragAction value) 25QueryContinueDragEventArgs e = new(1, false, DragAction.Continue)
System\Windows\Forms\RichTextBoxTests.cs (1)
10861QueryContinueDragEventArgs queryContinueDragEventArgs = new(keyState: 0, escapePressed: true, action: DragAction.Continue);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
3797yield return new object[] { new QueryContinueDragEventArgs(0, true, DragAction.Drop) }; 4105c.OnQueryContinueDrag(new QueryContinueDragEventArgs(0, false, DragAction.Cancel));
System\Windows\Forms\ToolStripItemTests.cs (1)
12675yield return new object[] { new QueryContinueDragEventArgs(0, true, DragAction.Drop) };
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (1)
106QueryContinueDragEventArgs queryContinueDragEventArgs = new(0, escapePressed: false, DragAction.Continue);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
863e.Action = DragAction.Cancel;