106 references to DragDropEffects
System.Windows.Forms (43)
winforms\Managed\System\WinForms\Control.cs (4)
6103
public
DragDropEffects
DoDragDrop(Object data,
DragDropEffects
allowedEffects) {
6104
int[] finalEffect = new int[] {(int)
DragDropEffects
.None};
6133
return(
DragDropEffects
)finalEffect[0];
winforms\Managed\System\WinForms\DragEvent.cs (6)
51
private readonly
DragDropEffects
allowedEffect;
60
private
DragDropEffects
effect;
68
public DragEventArgs(IDataObject data, int keyState, int x, int y,
DragDropEffects
allowedEffect,
DragDropEffects
effect) {
135
public
DragDropEffects
AllowedEffect {
146
public
DragDropEffects
Effect {
winforms\Managed\System\WinForms\DropSource.cs (1)
58
GiveFeedbackEventArgs gfbevent = new GiveFeedbackEventArgs((
DragDropEffects
) dwEffect, true);
winforms\Managed\System\WinForms\DropTarget.cs (6)
22
private
DragDropEffects
lastEffect =
DragDropEffects
.None;
55
DragEventArgs drgevent = new DragEventArgs(data, grfKeyState, pt.x, pt.y, (
DragDropEffects
)pdwEffect, lastEffect);
77
pdwEffect = (int)
DragDropEffects
.None;
111
pdwEffect = (int)
DragDropEffects
.None;
114
lastEffect =
DragDropEffects
.None;
winforms\Managed\System\WinForms\GiveFeedbackEvent.cs (3)
37
private readonly
DragDropEffects
effect;
46
public GiveFeedbackEventArgs(
DragDropEffects
effect, bool useDefaultCursors) {
57
public
DragDropEffects
Effect {
winforms\Managed\System\WinForms\RichTextBox.cs (14)
3775
DragDropEffects
lastEffect;
3905
lastEffect =
DragDropEffects
.None;
3912
DragDropEffects
.All,
3923
e.Effect = ((keyState & NativeMethods.MK_CONTROL) == NativeMethods.MK_CONTROL) ?
DragDropEffects
.Copy :
DragDropEffects
.Move;
3932
if (e.Effect ==
DragDropEffects
.None) {
3976
lastEffect = (
DragDropEffects
.All |
DragDropEffects
.None);
3979
lastEffect =
DragDropEffects
.None;
4001
DragDropEffects
.All,
4005
if (lastEffect !=
DragDropEffects
.None) {
4006
e.Effect = ((grfKeyState & NativeMethods.MK_CONTROL) == NativeMethods.MK_CONTROL) ?
DragDropEffects
.Copy :
DragDropEffects
.Move;
4018
pdwEffect = (int)
DragDropEffects
.None;
winforms\Managed\System\WinForms\ToolStrip.cs (3)
5363
e.Effect =
DragDropEffects
.Move;
5389
e.Effect =
DragDropEffects
.Move;
5395
e.Effect =
DragDropEffects
.None;
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
315
dragEnterArgs.Effect =
DragDropEffects
.None;
winforms\Managed\System\WinForms\ToolStripItem.cs (5)
2497
DoDragDrop(item,
DragDropEffects
.Move);
2570
public
DragDropEffects
DoDragDrop(Object data,
DragDropEffects
allowedEffects) {
2571
int[] finalEffect = new int[] {(int)
DragDropEffects
.None};
2605
return(
DragDropEffects
)finalEffect[0];
System.Workflow.Activities (10)
Designers\StateDesigner.cs (10)
1608
if (!ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
1627
private
DragDropEffects
CheckDragEffect(ActivityDragEventArgs e)
1631
return
DragDropEffects
.None;
1636
if (ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Copy) ==
DragDropEffects
.Copy)
1637
return
DragDropEffects
.Copy;
1638
else if ((e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
1639
return
DragDropEffects
.Move;
System.Workflow.ComponentModel (53)
AuthoringOM\Design\FreeFormDesigner.cs (12)
853
if (ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Copy) ==
DragDropEffects
.Copy)
854
e.Effect =
DragDropEffects
.Copy;
855
else if ((e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
856
e.Effect =
DragDropEffects
.Move;
863
if (ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Copy) ==
DragDropEffects
.Copy)
864
e.Effect =
DragDropEffects
.Copy;
865
else if ((e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
866
e.Effect =
DragDropEffects
.Move;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (21)
242
eventArgs.Effect =
DragDropEffects
.None;
312
if (eventArgs.Effect ==
DragDropEffects
.None && this.exceptionInDragDrop)
313
eventArgs.Effect = (this.wasCtrlKeyPressed) ?
DragDropEffects
.Copy :
DragDropEffects
.Move;
321
eventArgs.Effect =
DragDropEffects
.None;
356
dragdropEventArgs.Effect =
DragDropEffects
.None;
379
if (
DragDropEffects
.None != dragdropEventArgs.Effect && !dragdropEventArgs.DragImageSnapPoint.IsEmpty)
400
if (eventArgs.Effect ==
DragDropEffects
.None && this.exceptionInDragDrop)
401
eventArgs.Effect = (this.wasCtrlKeyPressed) ?
DragDropEffects
.Copy :
DragDropEffects
.Move;
413
eventArgs.Effect =
DragDropEffects
.None;
465
dragdropEventArgs.Effect =
DragDropEffects
.None;
503
if (dragdropEventArgs.Effect ==
DragDropEffects
.Move)
540
dragdropEventArgs.Effect =
DragDropEffects
.None;
827
DragDropEffects
effects =
DragDropEffects
.None;
836
DragDropEffects
allowedEffects = (DesignerHelpers.AreAssociatedDesignersMovable(this.existingDraggedActivities)) ?
DragDropEffects
.Move |
DragDropEffects
.Copy :
DragDropEffects
.Copy;
849
if (effects ==
DragDropEffects
.Move && this.existingDraggedActivities.Count > 0)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (4)
85
if ((gfbevent.Effect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
87
else if ((gfbevent.Effect &
DragDropEffects
.Copy) ==
DragDropEffects
.Copy)
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (16)
515
if (ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Copy) ==
DragDropEffects
.Copy)
516
e.Effect =
DragDropEffects
.Copy;
517
else if ((e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
518
e.Effect =
DragDropEffects
.Move;
724
if (dropIndex >= 0 && !ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
744
private
DragDropEffects
CheckDragEffect(ActivityDragEventArgs e)
748
return
DragDropEffects
.None;
753
if (ctrlKeyPressed && (e.AllowedEffect &
DragDropEffects
.Copy) ==
DragDropEffects
.Copy)
754
return
DragDropEffects
.Copy;
755
else if ((e.AllowedEffect &
DragDropEffects
.Move) ==
DragDropEffects
.Move)
756
return
DragDropEffects
.Move;