73 references to DropImageType
System.Windows.Forms (15)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (3)
150
e.DropImageType =
DropImageType
.Invalid;
171
if (e.DropImageType >
DropImageType
.Invalid)
287
=> e.Effect != DragDropEffects.None && e.DropImageType >
DropImageType
.Invalid && _owner.IsHandleCreated;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (3)
199
if (e.DropImageType >
DropImageType
.Invalid)
214
DropImageType =
DropImageType
.Invalid,
223
if (dragEnterArgs.DropImageType >
DropImageType
.Invalid && _owner is ToolStrip toolStrip && toolStrip.IsHandleCreated)
System\Windows\Forms\OLE\DragDropHelper.cs (2)
68
SetDropDescription(comDataObject,
DropImageType
.Invalid, string.Empty, string.Empty);
405
DropImageType
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)
36
DropImageType
dropImageType,
86
public
DropImageType
DropImageType { get; set; }
System\Windows\Forms\OLE\DropTarget.cs (4)
110
if (dragEvent.DropImageType >
DropImageType
.Invalid)
137
if (dragEvent.DropImageType >
DropImageType
.Invalid)
153
if (_lastDragEventArgs?.DropImageType >
DropImageType
.Invalid)
173
if (_lastDragEventArgs?.DropImageType >
DropImageType
.Invalid)
System.Windows.Forms.Tests (36)
System\Windows\Forms\DragDropHelperTests.cs (27)
32
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.Invalid, string.Empty, string.Empty) };
33
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.None, string.Empty, string.Empty) };
34
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.Copy, "Copy to %1", "Documents") };
35
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.Move, "Move to %1", "Documents") };
36
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.Link, "Create link in %1", "Documents") };
37
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.Label, "Update metadata in %1", "Document") };
38
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.Warning, "A problem has been encountered", string.Empty) };
39
yield return new object[] { new DragEventArgs(new DataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Copy,
DropImageType
.NoImage, "Copy to %1", "Documents") };
44
yield return new object[] { new DataObject(),
DropImageType
.Invalid, string.Empty, string.Empty };
45
yield return new object[] { new DataObject(),
DropImageType
.None, string.Empty, string.Empty };
46
yield return new object[] { new DataObject(),
DropImageType
.Copy, "Copy to %1", "Documents" };
47
yield return new object[] { new DataObject(),
DropImageType
.Move, "Move to %1", "Documents" };
48
yield return new object[] { new DataObject(),
DropImageType
.Link, "Create link in %1", "Documents" };
49
yield return new object[] { new DataObject(),
DropImageType
.Label, "Update metadata in %1", "Document" };
50
yield return new object[] { new DataObject(),
DropImageType
.Warning, "A problem has been encountered", string.Empty };
51
yield return new object[] { new DataObject(),
DropImageType
.NoImage, "Copy to %1", "Documents" };
56
yield return new object[] { new DataObject(),
DropImageType
.Copy, new string('*', (int)PInvokeCore.MAX_PATH), string.Empty };
57
yield return new object[] { new DataObject(),
DropImageType
.Copy, string.Empty, new string('*', (int)PInvokeCore.MAX_PATH) };
182
public unsafe void SetDropDescription_ClearDropDescription_ReturnsExpected(DataObject dataObject,
DropImageType
dropImageType, string message, string messageReplacementToken)
207
[InlineData(
DropImageType
.Invalid - 1)]
208
[InlineData(
DropImageType
.NoImage + 1)]
209
public void SetDropDescription_InvalidDropImageType_ThrowsArgumentNullException(
DropImageType
dropImageType)
217
public void SetDropDescription_IsInDragLoop_ReturnsExpected(DataObject dataObject,
DropImageType
dropImageType, string message, string messageReplacementToken)
233
public void SetDropDescription_LengthExceedsMaxPath_ThrowsArgumentOutOfRangeException(DataObject dataObject,
DropImageType
dropImageType, string message, string messageReplacementToken)
243
() => DragDropHelper.SetDropDescription(dataObject,
DropImageType
.Invalid, string.Empty, string.Empty));
248
public unsafe void SetDropDescription_ReleaseDragDropFormats_ReturnsExpected(DataObject dataObject,
DropImageType
dropImageType, string message, string messageReplacementToken)
293
public unsafe void SetDropDescription_DataObject_DropImageType_string_string_ReturnsExpected(DataObject dataObject,
DropImageType
dropImageType, string message, string messageReplacementToken)
System\Windows\Forms\DragEventArgsTests.cs (9)
17
yield return new object[] { null, -1, -2, -3, DragDropEffects.None - 1, DragDropEffects.None - 1, (
DropImageType
.Invalid - 1), null, null };
18
yield return new object[] { new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move,
DropImageType
.Copy, "Move to %1", "Documents" };
37
int y, DragDropEffects allowedEffect, DragDropEffects effect,
DropImageType
dropImageType, string message, string messageReplacementToken)
64
[InlineData(
DropImageType
.Copy)]
65
[InlineData(
DropImageType
.Invalid - 1)]
66
public void DropImageType_Set_GetReturnsExpected(
DropImageType
value)
68
DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move,
DropImageType
.Copy, "Copy to %1", "Documents")
80
DragEventArgs e = new(new CustomDataObject(), 1, 2, 3, DragDropEffects.Copy, DragDropEffects.Move,
DropImageType
.Copy, "Move to %1", "Documents")
92
DragEventArgs 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)
345
DropImageType
dropImageType =
DropImageType
.Move;
1071
e.DropImageType =
DropImageType
.Link;
1098
e.DropImageType =
DropImageType
.None;
1126
e.DropImageType =
DropImageType
.Link;
1137
e.DropImageType =
DropImageType
.None;
WinFormsControlsTest (16)
DragDrop.cs (16)
101
e.DropImageType =
DropImageType
.Warning;
119
e.DropImageType =
DropImageType
.Copy;
131
e.DropImageType =
DropImageType
.None;
144
e.DropImageType =
DropImageType
.Copy;
236
e.DropImageType =
DropImageType
.Copy;
247
e.DropImageType =
DropImageType
.None;
257
e.DropImageType =
DropImageType
.None;
278
e.DropImageType =
DropImageType
.Copy;
289
e.DropImageType =
DropImageType
.None;
299
e.DropImageType =
DropImageType
.None;
322
e.DropImageType =
DropImageType
.Link;
329
e.DropImageType =
DropImageType
.None;
336
e.DropImageType =
DropImageType
.None;
513
e.DropImageType =
DropImageType
.Link;
520
e.DropImageType =
DropImageType
.Link;
527
e.DropImageType =
DropImageType
.Link;