122 references to None
System.Windows.Forms (13)
System\Windows\Forms\Control.cs (1)
4839
return DragDropEffects.
None
;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (6)
126
_lastEffect = DragDropEffects.
None
;
183
return e.Effect == DragDropEffects.
None
? HRESULT.E_FAIL : HRESULT.S_OK;
212
? DragDropEffects.All | DragDropEffects.
None
213
: DragDropEffects.
None
;
248
if (_lastEffect != DragDropEffects.
None
)
287
=> e.Effect != DragDropEffects.
None
&& e.DropImageType > DropImageType.Invalid && _owner.IsHandleCreated;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
214
Effect = DragDropEffects.
None
,
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2205
return DragDropEffects.
None
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
56
e.Effect = DragDropEffects.
None
;
System\Windows\Forms\OLE\DropSource.cs (1)
27
_lastGiveFeedbackEventArgs = new(DragDropEffects.
None
, useDefaultCursors: false, dragImage, cursorOffset, useDefaultDragImage);
System\Windows\Forms\OLE\DropTarget.cs (2)
15
private DragDropEffects _lastEffect = DragDropEffects.
None
;
187
_lastEffect = DragDropEffects.
None
;
System.Windows.Forms.Design (48)
System\Windows\Forms\Design\Behavior\Behavior.cs (1)
328
else if (e.Effect != DragDropEffects.
None
)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (5)
191
DragDropEffects res = DragDropEffects.
None
;
228
res = DragDropEffects.
None
;
644
if (g is ControlBodyGlyph && e.Effect == DragDropEffects.
None
)
823
e.Effect = DragDropEffects.
None
;
834
e.Effect = DragDropEffects.
None
;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (4)
108
_allowedEffects = DragDropEffects.Copy | DragDropEffects.
None
| DragDropEffects.Move;
112
_lastEffect = DragDropEffects.
None
;
601
if (_data.Target is null || e.Effect == DragDropEffects.
None
)
1089
if (e.Action == DragAction.Cancel || _lastEffect == DragDropEffects.
None
)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
314
: DragDropEffects.
None
;
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
73
e.Effect = DragDropEffects.
None
;
System\Windows\Forms\Design\OleDragDropHandler.cs (17)
467
DragDropEffects allowedEffects = DragDropEffects.Copy | DragDropEffects.
None
| DragDropEffects.Move;
520
DragDropEffects effect = DragDropEffects.
None
;
568
if (!_localDragOffset.IsEmpty && effect != DragDropEffects.
None
)
600
de.Effect = DragDropEffects.
None
;
606
de.AllowedEffect == DragDropEffects.
None
||
609
de.Effect = DragDropEffects.
None
;
618
bool moveAllowed = (de.AllowedEffect & DragDropEffects.Move) != DragDropEffects.
None
|| localMoveOnly;
619
bool copyAllowed = (de.AllowedEffect & DragDropEffects.Copy) != DragDropEffects.
None
;
632
de.Effect = DragDropEffects.
None
;
779
de.Effect = DragDropEffects.
None
;
870
if (!Dragging && CanDropDataObject(de.Data) && de.AllowedEffect != DragDropEffects.
None
)
890
de.Effect = DragDropEffects.
None
;
894
else if (Dragging && de.AllowedEffect != DragDropEffects.
None
)
918
de.Effect = DragDropEffects.
None
;
950
de.Effect = DragDropEffects.
None
;
996
de.Effect = DragDropEffects.
None
;
1012
e.UseDefaultCursors = ((!_localDragInside && !_forceDrawFrames) || ((e.Effect & (DragDropEffects.Copy)) != 0)) || e.Effect == DragDropEffects.
None
;
System\Windows\Forms\Design\ParentControlDesigner.cs (8)
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
;
1627
de.Effect = DragDropEffects.
None
;
1670
de.Effect = DragDropEffects.
None
;
1680
de.Effect = DragDropEffects.
None
;
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 (1)
2282
de.Effect = DragDropEffects.
None
;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (3)
857
e.Effect = DragDropEffects.
None
;
862
e.Effect = DragDropEffects.
None
;
890
e.Effect = DragDropEffects.
None
;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
521
e.Effect = DragDropEffects.
None
;
System.Windows.Forms.Tests (46)
System\Windows\Forms\ControlTests.Handlers.cs (1)
2057
yield return new object[] { new GiveFeedbackEventArgs(DragDropEffects.
None
, true) };
System\Windows\Forms\ControlTests.Methods.cs (2)
1830
Assert.Equal(DragDropEffects.
None
, control.DoDragDrop(data, allowedEffects));
1848
Assert.Equal(DragDropEffects.
None
, control.DoDragDrop(data, allowedEffects));
System\Windows\Forms\DragEventArgsTests.cs (5)
11
yield return new object[] { null, -1, -2, -3, DragDropEffects.
None
- 1, DragDropEffects.
None
- 1 };
17
yield return new object[] { null, -1, -2, -3, DragDropEffects.
None
- 1, DragDropEffects.
None
- 1, (DropImageType.Invalid - 1), null, null };
53
[InlineData((DragDropEffects.
None
- 1))]
System\Windows\Forms\GiveFeedbackEventArgsTests.cs (6)
12
[InlineData(DragDropEffects.
None
, true)]
13
[InlineData((DragDropEffects.
None
- 1), false)]
25
GiveFeedbackEventArgs e = new(DragDropEffects.
None
, false, new Bitmap(1, 1), new Point(0, 0), false)
42
GiveFeedbackEventArgs e = new(DragDropEffects.
None
, false, new Bitmap(2, 2), new Point(0, 0), false)
60
GiveFeedbackEventArgs e = new(DragDropEffects.
None
, false)
72
GiveFeedbackEventArgs e = new(DragDropEffects.
None
, false, new Bitmap(1, 1), new Point(0, 0), false)
System\Windows\Forms\RichTextBoxTests.cs (7)
10739
allowedEffect: DragDropEffects.
None
,
10740
effect: DragDropEffects.
None
);
10767
allowedEffect: DragDropEffects.
None
,
10768
effect: DragDropEffects.
None
);
10816
allowedEffect: DragDropEffects.
None
,
10817
effect: DragDropEffects.
None
);
10839
GiveFeedbackEventArgs giveFeedbackEventArgs = new(DragDropEffects.
None
, useDefaultCursors: true);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
3491
yield return new object[] { new GiveFeedbackEventArgs(DragDropEffects.
None
, true) };
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3860
yield return new object[] { new GiveFeedbackEventArgs(DragDropEffects.
None
, true) };
System\Windows\Forms\ToolStripItemTests.cs (8)
10165
Assert.Equal(DragDropEffects.
None
, item.DoDragDrop(data, allowedEffects));
10178
Assert.Equal(DragDropEffects.
None
, item.DoDragDrop(data, allowedEffects));
10195
Assert.Equal(DragDropEffects.
None
, item.DoDragDrop(data, allowedEffects));
10209
Assert.Equal(DragDropEffects.
None
, item.DoDragDrop(data, allowedEffects));
10226
Assert.Equal(DragDropEffects.
None
, item.DoDragDrop(data, allowedEffects));
11010
yield return new object[] { new DragEventArgs(null, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
) };
11715
yield return new object[] { new GiveFeedbackEventArgs(DragDropEffects.
None
, true) };
System\Windows\Forms\ToolStripSplitStackDragDropHandlerTests.cs (15)
28
DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
);
39
DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
);
43
dragEventArgs.Effect.Should().Be(DragDropEffects.
None
);
52
DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
);
63
DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
);
76
DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
);
87
DragEventArgs dragEventArgs = new(dataObject, 0, 0, 0, DragDropEffects.
None
, DragDropEffects.
None
);
91
dragEventArgs.Effect.Should().Be(DragDropEffects.
None
);
97
GiveFeedbackEventArgs giveFeedbackEventArgs = new(effect: DragDropEffects.
None
, useDefaultCursors: false);
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (5)
762
e.Effect = DragDropEffects.
None
;
801
e.Effect = DragDropEffects.
None
;
1042
e.Effect = DragDropEffects.
None
;
1056
e.Effect = DragDropEffects.
None
;
1081
e.Effect = DragDropEffects.
None
;
WinFormsControlsTest (10)
DragDrop.cs (10)
102
e.Effect = DragDropEffects.
None
;
138
e.Effect = DragDropEffects.
None
;
226
e.Effect = DragDropEffects.
None
;
250
e.Effect = DragDropEffects.
None
;
264
e.Effect = DragDropEffects.
None
;
292
e.Effect = DragDropEffects.
None
;
306
e.Effect = DragDropEffects.
None
;
332
e.Effect = DragDropEffects.
None
;
339
e.Effect = DragDropEffects.
None
;
353
e.Effect = DragDropEffects.
None
;