1 write to AllowedEffect
System.Windows.Forms (1)
System\Windows\Forms\OLE\DragEventArgs.cs (1)
44AllowedEffect = allowedEffect;
31 references to AllowedEffect
System.Windows.Forms (3)
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\DragEventArgs.cs (2)
128&& dragEventArgs.AllowedEffect == AllowedEffect
System.Windows.Forms.Design (21)
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\ComponentTray.cs (3)
1129Debug.Assert((de.AllowedEffect & (DragDropEffects.Move | DragDropEffects.Copy)) != 0, "DragDropEffect.Move | .Copy isn't allowed?"); 1130if ((de.AllowedEffect & DragDropEffects.Move) != 0) 1163Debug.Assert((de.AllowedEffect & DragDropEffects.Copy) != 0, "DragDropEffect.Move isn't allowed?");
System\Windows\Forms\Design\OleDragDropHandler.cs (14)
606de.AllowedEffect == DragDropEffects.None || 613bool localMoveOnly = ((int)de.AllowedEffect & AllowLocalMoveOnly) != 0 && _localDragInside; 618bool moveAllowed = (de.AllowedEffect & DragDropEffects.Move) != DragDropEffects.None || localMoveOnly; 619bool copyAllowed = (de.AllowedEffect & DragDropEffects.Copy) != DragDropEffects.None; 870if (!Dragging && CanDropDataObject(de.Data) && de.AllowedEffect != DragDropEffects.None) 880if ((de.KeyState & (int)MODIFIERKEYS_FLAGS.MK_CONTROL) != 0 && (de.AllowedEffect & DragDropEffects.Copy) != 0) 884else if ((de.AllowedEffect & DragDropEffects.Move) != 0) 894else if (Dragging && de.AllowedEffect != DragDropEffects.None) 898&& (de.AllowedEffect & DragDropEffects.Copy) != 0 904bool localMoveOnly = ((int)de.AllowedEffect & AllowLocalMoveOnly) != 0 && _localDragInside; 911if ((de.AllowedEffect & DragDropEffects.Move) != 0) 955&& (de.AllowedEffect & DragDropEffects.Copy) != 0 960bool localMoveOnly = ((int)de.AllowedEffect & AllowLocalMoveOnly) != 0 && _localDragInside; 961bool move = (de.AllowedEffect & DragDropEffects.Move) != 0 || localMoveOnly;
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
1615Debug.Assert((de.AllowedEffect & (DragDropEffects.Move | DragDropEffects.Copy)) != 0, "DragDropEffect.Move | .Copy isn't allowed?"); 1616if ((de.AllowedEffect & DragDropEffects.Move) != 0) 1688Debug.Assert((de.AllowedEffect & DragDropEffects.Copy) != 0, "DragDropEffect.Move isn't allowed?");
System.Windows.Forms.Tests (2)
System\Windows\Forms\DragEventArgsTests.cs (2)
30Assert.Equal(allowedEffect, e.AllowedEffect); 44Assert.Equal(allowedEffect, e.AllowedEffect);
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (5)
826(e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) 834(e.AllowedEffect & DragDropEffects.Link) == DragDropEffects.Link) 840(e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move) 846(e.AllowedEffect & DragDropEffects.Copy) == DragDropEffects.Copy) 851else if ((e.AllowedEffect & DragDropEffects.Move) == DragDropEffects.Move)