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