73 references to DropImageType
System.Windows.Forms (15)
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 (2)
68SetDropDescription(comDataObject, DropImageType.Invalid, string.Empty, string.Empty); 405DropImageType dropImageType,
System\Windows\Forms\OLE\DragEventArgs.cs (3)
22: this(data, keyState, x, y, allowedEffect, effect, dropImageType: DropImageType.Invalid, message: string.Empty, messageReplacementToken: string.Empty) 36DropImageType dropImageType, 86public DropImageType DropImageType { get; set; }
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 (36)
System\Windows\Forms\DragDropHelperTests.cs (27)
32yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Invalid, string.Empty, string.Empty) }; 33yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.None, string.Empty, string.Empty) }; 34yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Copy, "Copy to %1", "Documents") }; 35yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Move, "Move to %1", "Documents") }; 36yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Link, "Create link in %1", "Documents") }; 37yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Label, "Update metadata in %1", "Document") }; 38yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.Warning, "A problem has been encountered", string.Empty) }; 39yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy, DropImageType.NoImage, "Copy to %1", "Documents") }; 44yield return new object[] { new DataObject(), DropImageType.Invalid, string.Empty, string.Empty }; 45yield return new object[] { new DataObject(), DropImageType.None, string.Empty, string.Empty }; 46yield return new object[] { new DataObject(), DropImageType.Copy, "Copy to %1", "Documents" }; 47yield return new object[] { new DataObject(), DropImageType.Move, "Move to %1", "Documents" }; 48yield return new object[] { new DataObject(), DropImageType.Link, "Create link in %1", "Documents" }; 49yield return new object[] { new DataObject(), DropImageType.Label, "Update metadata in %1", "Document" }; 50yield return new object[] { new DataObject(), DropImageType.Warning, "A problem has been encountered", string.Empty }; 51yield return new object[] { new DataObject(), DropImageType.NoImage, "Copy to %1", "Documents" }; 56yield return new object[] { new DataObject(), DropImageType.Copy, new string('*', (int)PInvokeCore.MAX_PATH), string.Empty }; 57yield return new object[] { new DataObject(), DropImageType.Copy, string.Empty, new string('*', (int)PInvokeCore.MAX_PATH) }; 182public unsafe void SetDropDescription_ClearDropDescription_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 207[InlineData(DropImageType.Invalid - 1)] 208[InlineData(DropImageType.NoImage + 1)] 209public void SetDropDescription_InvalidDropImageType_ThrowsArgumentNullException(DropImageType dropImageType) 217public void SetDropDescription_IsInDragLoop_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 233public void SetDropDescription_LengthExceedsMaxPath_ThrowsArgumentOutOfRangeException(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 243() => DragDropHelper.SetDropDescription(dataObject, DropImageType.Invalid, string.Empty, string.Empty)); 248public unsafe void SetDropDescription_ReleaseDragDropFormats_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken) 293public unsafe void SetDropDescription_DataObject_DropImageType_string_string_ReturnsExpected(DataObject dataObject, DropImageType dropImageType, string message, string messageReplacementToken)
System\Windows\Forms\DragEventArgsTests.cs (9)
17yield return new object[] { null, -1, -2, -3, DragDropEffects.None - 1, DragDropEffects.None - 1, (DropImageType.Invalid - 1), null, null }; 18yield return new object[] { new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Documents" }; 37int y, DragDropEffects allowedEffect, DragDropEffects effect, DropImageType dropImageType, string message, string messageReplacementToken) 64[InlineData(DropImageType.Copy)] 65[InlineData(DropImageType.Invalid - 1)] 66public void DropImageType_Set_GetReturnsExpected(DropImageType value) 68DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Copy to %1", "Documents") 80DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Documents") 92DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move, DropImageType.Copy, "Move to %1", "Desktop")
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (6)
345DropImageType dropImageType = DropImageType.Move; 1071e.DropImageType = DropImageType.Link; 1098e.DropImageType = DropImageType.None; 1126e.DropImageType = DropImageType.Link; 1137e.DropImageType = DropImageType.None;
WinFormsControlsTest (16)
DragDrop.cs (16)
101e.DropImageType = DropImageType.Warning; 119e.DropImageType = DropImageType.Copy; 131e.DropImageType = DropImageType.None; 144e.DropImageType = DropImageType.Copy; 236e.DropImageType = DropImageType.Copy; 247e.DropImageType = DropImageType.None; 257e.DropImageType = DropImageType.None; 278e.DropImageType = DropImageType.Copy; 289e.DropImageType = DropImageType.None; 299e.DropImageType = DropImageType.None; 322e.DropImageType = DropImageType.Link; 329e.DropImageType = DropImageType.None; 336e.DropImageType = DropImageType.None; 513e.DropImageType = DropImageType.Link; 520e.DropImageType = DropImageType.Link; 527e.DropImageType = DropImageType.Link;