104 writes to Effect
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;
250
e.
Effect
= grfKeyState.HasFlag(MODIFIERKEYS_FLAGS.MK_CONTROL)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
214
Effect
= DragDropEffects.None,
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
25
e.
Effect
= DragDropEffects.Move;
50
e.
Effect
= DragDropEffects.Move;
56
e.
Effect
= DragDropEffects.None;
System\Windows\Forms\OLE\DragEventArgs.cs (1)
45
Effect
= effect;
System.Windows.Forms.Design (59)
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
330
e.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
823
e.
Effect
= DragDropEffects.None;
834
e.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
293
e.
Effect
= GetEffect(e.Data);
303
e.
Effect
= GetEffect(e.Data);
System\Windows\Forms\Design\ComponentTray.cs (4)
1098
de.
Effect
= DragDropEffects.Copy;
1132
de.
Effect
= DragDropEffects.Move;
1136
de.
Effect
= DragDropEffects.Copy;
1164
de.
Effect
= DragDropEffects.Copy;
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
73
e.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\OleDragDropHandler.cs (19)
600
de.
Effect
= DragDropEffects.None;
609
de.
Effect
= DragDropEffects.None;
624
de.
Effect
= DragDropEffects.Copy;
632
de.
Effect
= DragDropEffects.None;
638
de.
Effect
|= (DragDropEffects)AllowLocalMoveOnly | DragDropEffects.Move;
642
de.
Effect
= DragDropEffects.Copy;
779
de.
Effect
= DragDropEffects.None;
882
de.
Effect
= DragDropEffects.Copy;
886
de.
Effect
= DragDropEffects.Move;
890
de.
Effect
= DragDropEffects.None;
901
de.
Effect
= DragDropEffects.Copy;
908
de.
Effect
|= (DragDropEffects)AllowLocalMoveOnly;
913
de.
Effect
|= DragDropEffects.Move;
918
de.
Effect
= DragDropEffects.None;
950
de.
Effect
= DragDropEffects.None;
988
de.
Effect
= DragDropEffects.Copy;
992
de.
Effect
= DragDropEffects.Move;
996
de.
Effect
= DragDropEffects.None;
1001
de.
Effect
|= (DragDropEffects)AllowLocalMoveOnly;
System\Windows\Forms\Design\ParentControlDesigner.cs (13)
1459
de.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
1471
de.
Effect
= DragDropEffects.None;
1498
de.
Effect
= DragDropEffects.None;
1527
de.
Effect
= DragDropEffects.None;
1556
de.
Effect
= DragDropEffects.None;
1564
de.
Effect
= DragDropEffects.None;
1617
de.
Effect
= DragDropEffects.Move;
1621
de.
Effect
= DragDropEffects.Copy;
1627
de.
Effect
= DragDropEffects.None;
1659
de.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
1670
de.
Effect
= DragDropEffects.None;
1680
de.
Effect
= DragDropEffects.None;
1688
de.
Effect
= DragDropEffects.Copy;
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
155
protected override void OnDragEnter(DragEventArgs de) => de.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
54
de.
Effect
= DragDropEffects.None;
65
de.
Effect
= DragDropEffects.None;
86
de.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\TabControlDesigner.cs (1)
575
de.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1384
de.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
2282
de.
Effect
= DragDropEffects.None;
2286
de.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (5)
853
e.
Effect
= DragDropEffects.Move;
857
e.
Effect
= DragDropEffects.None;
862
e.
Effect
= DragDropEffects.None;
886
e.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
890
e.
Effect
= DragDropEffects.None;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2651
e.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
2666
e.
Effect
= (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
517
e.
Effect
= DragDropEffects.Move;
521
e.
Effect
= DragDropEffects.None;
System.Windows.Forms.Tests (1)
System\Windows\Forms\DragEventArgsTests.cs (1)
58
Effect
= value
System.Windows.Forms.UI.IntegrationTests (17)
DragDropTests.cs (17)
72
e.
Effect
= DragDropEffects.Copy;
81
e.
Effect
= DragDropEffects.Copy;
286
e.
Effect
= DragDropEffects.Copy;
295
e.
Effect
= DragDropEffects.Copy;
357
e.
Effect
= DragDropEffects.Copy;
760
e.
Effect
= DragDropEffects.None;
772
e.
Effect
= DragDropEffects.Link;
778
e.
Effect
= DragDropEffects.Link;
784
e.
Effect
= DragDropEffects.Move;
790
e.
Effect
= DragDropEffects.Copy;
795
e.
Effect
= DragDropEffects.Move;
799
e.
Effect
= DragDropEffects.None;
1014
e.
Effect
= DragDropEffects.Link;
1040
e.
Effect
= DragDropEffects.None;
1054
e.
Effect
= DragDropEffects.None;
1070
e.
Effect
= DragDropEffects.Link;
1079
e.
Effect
= DragDropEffects.None;
TrimTest (2)
Form1.cs (2)
21
e.
Effect
= DragDropEffects.Copy;
29
e.
Effect
= DragDropEffects.Copy;
WinFormsControlsTest (18)
DragDrop.cs (18)
102
e.
Effect
= DragDropEffects.None;
126
e.
Effect
= DragDropEffects.Copy;
138
e.
Effect
= DragDropEffects.None;
151
e.
Effect
= DragDropEffects.Copy;
226
e.
Effect
= DragDropEffects.None;
243
e.
Effect
= DragDropEffects.Copy;
250
e.
Effect
= DragDropEffects.None;
264
e.
Effect
= DragDropEffects.None;
285
e.
Effect
= DragDropEffects.Copy;
292
e.
Effect
= DragDropEffects.None;
306
e.
Effect
= DragDropEffects.None;
325
e.
Effect
= DragDropEffects.Link;
332
e.
Effect
= DragDropEffects.None;
339
e.
Effect
= DragDropEffects.None;
353
e.
Effect
= DragDropEffects.None;
515
e.
Effect
= DragDropEffects.Link;
522
e.
Effect
= DragDropEffects.Link;
529
e.
Effect
= DragDropEffects.Link;
44 references to Effect
System.Windows.Forms (15)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (4)
182
_lastEffect = e.
Effect
;
183
return e.
Effect
== DragDropEffects.None ? HRESULT.E_FAIL : HRESULT.S_OK;
256
_lastEffect = e.
Effect
;
287
=> e.
Effect
!= DragDropEffects.None && e.DropImageType > DropImageType.Invalid && _owner.IsHandleCreated;
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\DragDropHelper.cs (3)
83
DragEnter(targetWindowHandle, dataObject, ref point, (DROPEFFECT)(uint)e.
Effect
);
129
dropTargetHelper.Value->DragOver(in point, (DROPEFFECT)(uint)e.
Effect
);
146
dropTargetHelper.Value->Drop(dataObjectScope, in point, (DROPEFFECT)(uint)e.
Effect
);
System\Windows\Forms\OLE\DragEventArgs.cs (2)
129
&& dragEventArgs.
Effect
==
Effect
System\Windows\Forms\OLE\DropTarget.cs (5)
107
*pdwEffect = (Ole.DROPEFFECT)dragEvent.
Effect
;
108
_lastEffect = dragEvent.
Effect
;
134
*pdwEffect = (Ole.DROPEFFECT)dragEvent.
Effect
;
135
_lastEffect = dragEvent.
Effect
;
180
*pdwEffect = (Ole.DROPEFFECT)dragEvent.
Effect
;
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
328
else if (e.
Effect
!= DragDropEffects.None)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
644
if (g is ControlBodyGlyph && e.
Effect
== DragDropEffects.None)
System\Windows\Forms\Design\Behavior\ToolboxSnapDragDropEventArgs.cs (1)
22
: base(origArgs.Data, origArgs.KeyState, origArgs.X, origArgs.Y, origArgs.AllowedEffect, origArgs.
Effect
)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
252
ReParentControls(components, e.
Effect
== DragDropEffects.Copy);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
564
bool performCopy = de.
Effect
== DragDropEffects.Copy;
System\Windows\Forms\Design\OleDragDropHandler.cs (8)
621
if ((de.
Effect
& DragDropEffects.Move) != 0 && !moveAllowed)
628
if ((de.
Effect
& DragDropEffects.Copy) != 0 && !copyAllowed)
636
if (localMoveOnly && (de.
Effect
& DragDropEffects.Move) != 0)
640
else if ((de.
Effect
& DragDropEffects.Copy) != 0)
664
if (_dragOk || (_localDragInside && de.
Effect
== DragDropEffects.Copy))
684
if (de.
Effect
== DragDropEffects.Copy || newContainer)
688
cdo.Deserialize(_serviceProvider, (de.
Effect
& DragDropEffects.Copy) == 0);
982
_localDragEffect = de.
Effect
;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
495
bool localCopy = ((de is not null) && (de.
Effect
== DragDropEffects.Copy) && localReposition);
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1836
bool copy = (de.
Effect
== DragDropEffects.Copy);
1894
if (de.
Effect
== DragDropEffects.Move || copy)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
660
bool copy = (e.
Effect
== DragDropEffects.Copy);
725
if (e.
Effect
== DragDropEffects.Move || copy)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2696
bool copy = (e.
Effect
== DragDropEffects.Copy);
2753
if (e.
Effect
== DragDropEffects.Move || copy)
System.Windows.Forms.Tests (7)
System\Windows\Forms\DragEventArgsTests.cs (3)
31
Assert.Equal(effect, e.
Effect
);
45
Assert.Equal(effect, e.
Effect
);
60
Assert.Equal(value, e.
Effect
);
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (4)
32
dragEventArgs.
Effect
.Should().Be(DragDropEffects.Move);
43
dragEventArgs.
Effect
.Should().Be(DragDropEffects.None);
80
dragEventArgs.
Effect
.Should().Be(DragDropEffects.Move);
91
dragEventArgs.
Effect
.Should().Be(DragDropEffects.None);
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
831
if (item is not null && (e.
Effect
== DragDropEffects.Copy || e.
Effect
== DragDropEffects.Move))