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