17 references to Invalid
System.Windows.Forms (11)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (3)
149e.DropImageType = DropImageType.Invalid; 171if (e.DropImageType > DropImageType.Invalid) 290=> e.Effect != DragDropEffects.None && e.DropImageType > DropImageType.Invalid && _owner.IsHandleCreated;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
200if (e.DropImageType > DropImageType.Invalid) 215DropImageType = DropImageType.Invalid, 224if (dragEnterArgs.DropImageType > DropImageType.Invalid && _owner is ToolStrip toolStrip && toolStrip.IsHandleCreated)
System\Windows\Forms\OLE\DragEventArgs.cs (1)
25: this(data, keyState, x, y, allowedEffect, effect, dropImageType: DropImageType.Invalid, message: string.Empty, messageReplacementToken: string.Empty)
System\Windows\Forms\OLE\DropTarget.cs (4)
121if (dragEvent.DropImageType > DropImageType.Invalid) 148if (dragEvent.DropImageType > DropImageType.Invalid) 164if (_lastDragEventArgs?.DropImageType > DropImageType.Invalid) 184if (_lastDragEventArgs?.DropImageType > DropImageType.Invalid)
System.Windows.Forms.Tests (6)
System\Windows\Forms\DragDropHelperTests.cs (4)
38yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Invalid, string.Empty, string.Empty) }; 50yield return new object[] { new DataObject(), DropImageType.Invalid, string.Empty, string.Empty }; 234[InlineData(DropImageType.Invalid - 1)] 269() => DragDropHelper.SetDropDescription(dataObject, (DROPIMAGETYPE)DropImageType.Invalid, string.Empty, string.Empty));
System\Windows\Forms\DragEventArgsTests.cs (2)
19yield return new object[] { null, -1, -2, -3, DragDropEffects.None - 1, DragDropEffects.None - 1, (DropImageType.Invalid - 1), null, null }; 67[InlineData(DropImageType.Invalid - 1)]