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