106 writes to Effect
System.Windows.Forms (7)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (2)
160e.Effect = keyState.HasFlag(MODIFIERKEYS_FLAGS.MK_CONTROL) ? DragDropEffects.Copy : DragDropEffects.Move; 250e.Effect = grfKeyState.HasFlag(MODIFIERKEYS_FLAGS.MK_CONTROL)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
213Effect = DragDropEffects.None,
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
25e.Effect = DragDropEffects.Move; 50e.Effect = DragDropEffects.Move; 56e.Effect = DragDropEffects.None;
System\Windows\Forms\OLE\DragEventArgs.cs (1)
45Effect = effect;
System.Windows.Forms.Design (59)
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
330e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
823e.Effect = DragDropEffects.None; 834e.Effect = DragDropEffects.None;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
293e.Effect = GetEffect(e.Data); 303e.Effect = GetEffect(e.Data);
System\Windows\Forms\Design\ComponentTray.cs (4)
1098de.Effect = DragDropEffects.Copy; 1132de.Effect = DragDropEffects.Move; 1136de.Effect = DragDropEffects.Copy; 1164de.Effect = DragDropEffects.Copy;
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
73e.Effect = DragDropEffects.None;
System\Windows\Forms\Design\OleDragDropHandler.cs (19)
600de.Effect = DragDropEffects.None; 609de.Effect = DragDropEffects.None; 624de.Effect = DragDropEffects.Copy; 632de.Effect = DragDropEffects.None; 638de.Effect |= (DragDropEffects)AllowLocalMoveOnly | DragDropEffects.Move; 642de.Effect = DragDropEffects.Copy; 779de.Effect = DragDropEffects.None; 882de.Effect = DragDropEffects.Copy; 886de.Effect = DragDropEffects.Move; 890de.Effect = DragDropEffects.None; 901de.Effect = DragDropEffects.Copy; 908de.Effect |= (DragDropEffects)AllowLocalMoveOnly; 913de.Effect |= DragDropEffects.Move; 918de.Effect = DragDropEffects.None; 950de.Effect = DragDropEffects.None; 988de.Effect = DragDropEffects.Copy; 992de.Effect = DragDropEffects.Move; 996de.Effect = DragDropEffects.None; 1001de.Effect |= (DragDropEffects)AllowLocalMoveOnly;
System\Windows\Forms\Design\ParentControlDesigner.cs (13)
1459de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 1471de.Effect = DragDropEffects.None; 1499de.Effect = DragDropEffects.None; 1528de.Effect = DragDropEffects.None; 1557de.Effect = DragDropEffects.None; 1565de.Effect = DragDropEffects.None; 1618de.Effect = DragDropEffects.Move; 1622de.Effect = DragDropEffects.Copy; 1628de.Effect = DragDropEffects.None; 1660de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 1671de.Effect = DragDropEffects.None; 1681de.Effect = DragDropEffects.None; 1689de.Effect = DragDropEffects.Copy;
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
155protected override void OnDragEnter(DragEventArgs de) => de.Effect = DragDropEffects.None;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
54de.Effect = DragDropEffects.None; 65de.Effect = DragDropEffects.None; 86de.Effect = DragDropEffects.None;
System\Windows\Forms\Design\TabControlDesigner.cs (1)
576de.Effect = DragDropEffects.None;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1384de.Effect = DragDropEffects.None;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
2281de.Effect = DragDropEffects.None; 2285de.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (5)
853e.Effect = DragDropEffects.Move; 857e.Effect = DragDropEffects.None; 862e.Effect = DragDropEffects.None; 886e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 890e.Effect = DragDropEffects.None;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2651e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move; 2666e.Effect = (Control.ModifierKeys == Keys.Control) ? DragDropEffects.Copy : DragDropEffects.Move;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
517e.Effect = DragDropEffects.Move; 521e.Effect = DragDropEffects.None;
System.Windows.Forms.Tests (1)
System\Windows\Forms\DragEventArgsTests.cs (1)
58Effect = value
System.Windows.Forms.UI.IntegrationTests (19)
DragDropTests.cs (19)
74e.Effect = DragDropEffects.Copy; 83e.Effect = DragDropEffects.Copy; 290e.Effect = DragDropEffects.Copy; 299e.Effect = DragDropEffects.Copy; 361e.Effect = DragDropEffects.Copy; 509e.Effect = DragDropEffects.Copy; 518e.Effect = DragDropEffects.Copy; 819e.Effect = DragDropEffects.None; 831e.Effect = DragDropEffects.Link; 837e.Effect = DragDropEffects.Link; 843e.Effect = DragDropEffects.Move; 849e.Effect = DragDropEffects.Copy; 854e.Effect = DragDropEffects.Move; 858e.Effect = DragDropEffects.None; 1073e.Effect = DragDropEffects.Link; 1099e.Effect = DragDropEffects.None; 1113e.Effect = DragDropEffects.None; 1129e.Effect = DragDropEffects.Link; 1138e.Effect = DragDropEffects.None;
TrimTest (2)
Form1.cs (2)
21e.Effect = DragDropEffects.Copy; 29e.Effect = DragDropEffects.Copy;
WinFormsControlsTest (18)
DragDrop.cs (18)
102e.Effect = DragDropEffects.None; 126e.Effect = DragDropEffects.Copy; 138e.Effect = DragDropEffects.None; 151e.Effect = DragDropEffects.Copy; 226e.Effect = DragDropEffects.None; 243e.Effect = DragDropEffects.Copy; 250e.Effect = DragDropEffects.None; 264e.Effect = DragDropEffects.None; 285e.Effect = DragDropEffects.Copy; 292e.Effect = DragDropEffects.None; 306e.Effect = DragDropEffects.None; 325e.Effect = DragDropEffects.Link; 332e.Effect = DragDropEffects.None; 339e.Effect = DragDropEffects.None; 353e.Effect = DragDropEffects.None; 515e.Effect = DragDropEffects.Link; 522e.Effect = DragDropEffects.Link; 529e.Effect = DragDropEffects.Link;
44 references to Effect
System.Windows.Forms (15)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (4)
182_lastEffect = e.Effect; 183return 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)
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\DragDropHelper.cs (3)
83DragEnter(targetWindowHandle, dataObject, ref point, (DROPEFFECT)(uint)e.Effect); 129dropTargetHelper.Value->DragOver(in point, (DROPEFFECT)(uint)e.Effect); 146dropTargetHelper.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)
328else if (e.Effect != DragDropEffects.None)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
644if (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)
252ReParentControls(components, e.Effect == DragDropEffects.Copy);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
564bool performCopy = de.Effect == DragDropEffects.Copy;
System\Windows\Forms\Design\OleDragDropHandler.cs (8)
621if ((de.Effect & DragDropEffects.Move) != 0 && !moveAllowed) 628if ((de.Effect & DragDropEffects.Copy) != 0 && !copyAllowed) 636if (localMoveOnly && (de.Effect & DragDropEffects.Move) != 0) 640else if ((de.Effect & DragDropEffects.Copy) != 0) 664if (_dragOk || (_localDragInside && de.Effect == DragDropEffects.Copy)) 684if (de.Effect == DragDropEffects.Copy || newContainer) 688cdo.Deserialize(_serviceProvider, (de.Effect & DragDropEffects.Copy) == 0); 982_localDragEffect = de.Effect;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
495bool localCopy = ((de is not null) && (de.Effect == DragDropEffects.Copy) && localReposition);
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1835bool copy = (de.Effect == DragDropEffects.Copy); 1893if (de.Effect == DragDropEffects.Move || copy)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
660bool copy = (e.Effect == DragDropEffects.Copy); 725if (e.Effect == DragDropEffects.Move || copy)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2696bool copy = (e.Effect == DragDropEffects.Copy); 2753if (e.Effect == DragDropEffects.Move || copy)
System.Windows.Forms.Tests (7)
System\Windows\Forms\DragEventArgsTests.cs (3)
31Assert.Equal(effect, e.Effect); 45Assert.Equal(effect, e.Effect); 60Assert.Equal(value, e.Effect);
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (4)
32dragEventArgs.Effect.Should().Be(DragDropEffects.Move); 43dragEventArgs.Effect.Should().Be(DragDropEffects.None); 80dragEventArgs.Effect.Should().Be(DragDropEffects.Move); 91dragEventArgs.Effect.Should().Be(DragDropEffects.None);
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (2)
890if (item is not null && (e.Effect == DragDropEffects.Copy || e.Effect == DragDropEffects.Move))