17 references to Invalid
System.Windows.Forms (11)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (3)
149
e.DropImageType = DropImageType.
Invalid
;
171
if (e.DropImageType > DropImageType.
Invalid
)
290
=> e.Effect != DragDropEffects.None && e.DropImageType > DropImageType.
Invalid
&& _owner.IsHandleCreated;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
200
if (e.DropImageType > DropImageType.
Invalid
)
215
DropImageType = DropImageType.
Invalid
,
224
if (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)
121
if (dragEvent.DropImageType > DropImageType.
Invalid
)
148
if (dragEvent.DropImageType > DropImageType.
Invalid
)
164
if (_lastDragEventArgs?.DropImageType > DropImageType.
Invalid
)
184
if (_lastDragEventArgs?.DropImageType > DropImageType.
Invalid
)
System.Windows.Forms.Tests (6)
System\Windows\Forms\DragDropHelperTests.cs (4)
38
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.
Invalid
, string.Empty, string.Empty) };
50
yield 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)
19
yield return new object[] { null, -1, -2, -3, DragDropEffects.None - 1, DragDropEffects.None - 1, (DropImageType.
Invalid
- 1), null, null };
67
[InlineData(DropImageType.
Invalid
- 1)]