63 references to Move
System.Windows.Forms (7)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (2)
160
e.Effect = keyState.HasFlag(MODIFIERKEYS_FLAGS.MK_CONTROL) ? DragDropEffects.Copy : DragDropEffects.
Move
;
252
: DragDropEffects.
Move
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2061
DoDragDrop(item, DragDropEffects.
Move
);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
25
e.Effect = DragDropEffects.
Move
;
50
e.Effect = DragDropEffects.
Move
;
System\Windows\Forms\OLE\DragDropEffects.cs (1)
38
All = Copy |
Move
| Scroll,
System\Windows\Forms\OLE\DropImageType.cs (1)
29
Move = DragDropEffects.
Move
,
System.Windows.Forms.Design (36)
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
330
e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
108
_allowedEffects = DragDropEffects.Copy | DragDropEffects.None | DragDropEffects.
Move
;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
313
: DragDropEffects.
Move
System\Windows\Forms\Design\ComponentTray.cs (3)
1129
Debug.Assert((de.AllowedEffect & (DragDropEffects.
Move
| DragDropEffects.Copy)) != 0, "DragDropEffect.Move | .Copy isn't allowed?");
1130
if ((de.AllowedEffect & DragDropEffects.
Move
) != 0)
1132
de.Effect = DragDropEffects.
Move
;
System\Windows\Forms\Design\OleDragDropHandler.cs (15)
365
if ((oldEffect & DragDropEffects.
Move
) == 0 ||
387
if ((oldEffect & DragDropEffects.
Move
) == 0 ||
467
DragDropEffects allowedEffects = DragDropEffects.Copy | DragDropEffects.None | DragDropEffects.
Move
;
480
allowedEffects &= ~DragDropEffects.
Move
;
548
bool isMove = (effect & DragDropEffects.
Move
) != 0 || ((int)effect & AllowLocalMoveOnly) != 0;
618
bool moveAllowed = (de.AllowedEffect & DragDropEffects.
Move
) != DragDropEffects.None || localMoveOnly;
621
if ((de.Effect & DragDropEffects.
Move
) != 0 && !moveAllowed)
636
if (localMoveOnly && (de.Effect & DragDropEffects.
Move
) != 0)
638
de.Effect |= (DragDropEffects)AllowLocalMoveOnly | DragDropEffects.
Move
;
884
else if ((de.AllowedEffect & DragDropEffects.
Move
) != 0)
886
de.Effect = DragDropEffects.
Move
;
911
if ((de.AllowedEffect & DragDropEffects.
Move
) != 0)
913
de.Effect |= DragDropEffects.
Move
;
961
bool move = (de.AllowedEffect & DragDropEffects.
Move
) != 0 || localMoveOnly;
992
de.Effect = DragDropEffects.
Move
;
System\Windows\Forms\Design\ParentControlDesigner.cs (5)
1459
de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
1615
Debug.Assert((de.AllowedEffect & (DragDropEffects.
Move
| DragDropEffects.Copy)) != 0, "DragDropEffect.Move | .Copy isn't allowed?");
1616
if ((de.AllowedEffect & DragDropEffects.
Move
) != 0)
1618
de.Effect = DragDropEffects.
Move
;
1660
de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1893
if (de.Effect == DragDropEffects.
Move
|| copy)
2285
de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
725
if (e.Effect == DragDropEffects.
Move
|| copy)
853
e.Effect = DragDropEffects.
Move
;
886
e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (3)
2651
e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
2666
e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.
Move
;
2753
if (e.Effect == DragDropEffects.
Move
|| copy)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
510
DoDragDrop(item, DragDropEffects.
Move
);
517
e.Effect = DragDropEffects.
Move
;
System.Windows.Forms.Tests (10)
System\Windows\Forms\ControlTests.Handlers.cs (1)
1302
yield return new object[] { new DragEventArgs(null, 1, 2, 3, DragDropEffects.Copy, DragDropEffects.
Move
) };
System\Windows\Forms\DragEventArgsTests.cs (6)
12
yield return new object[] { new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.
Move
};
18
yield return new object[] { new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.
Move
, DropImageType.Copy, "Move to %1", "Documents" };
56
DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.
Move
)
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")
System\Windows\Forms\ToolStripControlHostTests.cs (1)
3345
yield return new object[] { new DragEventArgs(null, 1, 2, 3, DragDropEffects.Copy, DragDropEffects.
Move
) };
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (2)
32
dragEventArgs.Effect.Should().Be(DragDropEffects.
Move
);
80
dragEventArgs.Effect.Should().Be(DragDropEffects.
Move
);
System.Windows.Forms.UI.IntegrationTests (10)
DragDropTests.cs (10)
773
if (dropEffect == DragDropEffects.
Move
)
804
if ((e.Effect & DragDropEffects.
Move
) == DragDropEffects.
Move
)
840
(e.AllowedEffect & DragDropEffects.
Move
) == DragDropEffects.
Move
)
843
e.Effect = DragDropEffects.
Move
;
851
else if ((e.AllowedEffect & DragDropEffects.
Move
) == DragDropEffects.
Move
)
854
e.Effect = DragDropEffects.
Move
;
890
if (item is not null && (e.Effect == DragDropEffects.Copy || e.Effect == DragDropEffects.
Move
))