18 references to Invalid
System.Windows.Forms (12)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (3)
150e.DropImageType = DropImageType.Invalid; 171if (e.DropImageType > DropImageType.Invalid) 287=> e.Effect != DragDropEffects.None && e.DropImageType > DropImageType.Invalid && _owner.IsHandleCreated;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
199if (e.DropImageType > DropImageType.Invalid) 214DropImageType = DropImageType.Invalid, 223if (dragEnterArgs.DropImageType > DropImageType.Invalid && _owner is ToolStrip toolStrip && toolStrip.IsHandleCreated)
System\Windows\Forms\OLE\DragDropHelper.cs (1)
68SetDropDescription(comDataObject, DropImageType.Invalid, string.Empty, string.Empty);
System\Windows\Forms\OLE\DragEventArgs.cs (1)
22: this(data, keyState, x, y, allowedEffect, effect, dropImageType: DropImageType.Invalid, message: string.Empty, messageReplacementToken: string.Empty)
System\Windows\Forms\OLE\DropTarget.cs (4)
110if (dragEvent.DropImageType > DropImageType.Invalid) 137if (dragEvent.DropImageType > DropImageType.Invalid) 153if (_lastDragEventArgs?.DropImageType > DropImageType.Invalid) 173if (_lastDragEventArgs?.DropImageType > DropImageType.Invalid)
System.Windows.Forms.Tests (6)
System\Windows\Forms\DragDropHelperTests.cs (4)
32yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Invalid, string.Empty, string.Empty) }; 44yield return new object[] { new DataObject(), DropImageType.Invalid, string.Empty, string.Empty }; 207[InlineData(DropImageType.Invalid - 1)] 243() => DragDropHelper.SetDropDescription(dataObject, DropImageType.Invalid, string.Empty, string.Empty));
System\Windows\Forms\DragEventArgsTests.cs (2)
17yield return new object[] { null, -1, -2, -3, DragDropEffects.None - 1, DragDropEffects.None - 1, (DropImageType.Invalid - 1), null, null }; 65[InlineData(DropImageType.Invalid - 1)]