47 references to FileDrop
System.Windows.Forms (3)
System\Windows\Forms\OLE\Clipboard.cs (3)
203
/// Indicates whether there is data on the Clipboard that is in the <see cref="DataFormats.
FileDrop
"/> format
206
public static bool ContainsFileDropList() => ContainsData(DataFormats.
FileDrop
, autoConvert: true);
573
/// Clears the Clipboard and then adds a collection of file names in the <see cref="DataFormats.
FileDrop
"/> format.
System.Windows.Forms.Tests (26)
System\Windows\Forms\DataFormatsTests.cs (2)
18
yield return new object[] { DataFormats.
FileDrop
, "FileDrop" };
49
yield return new object[] { DataFormats.
FileDrop
, "FileDrop", 15 };
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
127
dataObject.TryGetData(DataFormats.
FileDrop
, autoConvert, out int? _).Should().BeFalse();
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (4)
89
theoryData.Add(format, null, format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
90
theoryData.Add(format, "input", format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
144
theoryData.Add(format, autoConvert, null, format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
145
theoryData.Add(format, autoConvert, "input", format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
System\Windows\Forms\DataObjectTests.cs (19)
42
DataFormats.
FileDrop
,
103
.Setup(o => o.GetDataPresent(DataFormats.
FileDrop
, true))
107
mockDataObject.Verify(o => o.GetDataPresent(DataFormats.
FileDrop
, true), Times.Once());
656
dataObject.SetData(DataFormats.
FileDrop
, result);
669
.Setup(o => o.GetData(DataFormats.
FileDrop
, true))
673
mockDataObject.Verify(o => o.GetData(DataFormats.
FileDrop
, true), Times.Once());
1170
theoryData.Add(format, null, format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
1171
theoryData.Add(format, "input", format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
1314
theoryData.Add(format, autoConvert, null, format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
1315
theoryData.Add(format, autoConvert, "input", format == DataFormats.
FileDrop
, format == DataFormats.Bitmap);
1534
dataObject.GetData(DataFormats.
FileDrop
, autoConvert: true).Should().BeEquivalentTo(filePaths.Cast<string>());
1535
dataObject.GetData(DataFormats.
FileDrop
, autoConvert: false).Should().BeEquivalentTo(filePaths.Cast<string>());
1542
dataObject.GetDataPresent(DataFormats.
FileDrop
, autoConvert: true).Should().BeTrue();
1543
dataObject.GetDataPresent(DataFormats.
FileDrop
, autoConvert: false).Should().BeTrue();
1559
.Setup(o => o.SetData(DataFormats.
FileDrop
, true, It.IsAny<string[]>()))
1562
mockDataObject.Verify(o => o.SetData(DataFormats.
FileDrop
, true, It.IsAny<string[]>()), Times.Once());
1571
.Setup(o => o.SetData(DataFormats.
FileDrop
, true, It.IsAny<string[]>()))
1575
mockDataObject.Verify(o => o.SetData(DataFormats.
FileDrop
, true, It.IsAny<string[]>()), Times.Once());
2029
{ DataFormats.
FileDrop
, TYMED.TYMED_HGLOBAL },
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
22
DataFormats.
FileDrop
,
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (6)
1089
DataObject data = new(DataFormats.
FileDrop
, dropFiles);
1107
&& e.Data.GetDataPresent(DataFormats.
FileDrop
)
1108
&& e.Data.GetData(DataFormats.
FileDrop
) is string[] fileNames
1122
&& e.Data.GetDataPresent(DataFormats.
FileDrop
)
1123
&& e.Data.GetData(DataFormats.
FileDrop
) is string[] fileNames
1149
DataObject data = new(DataFormats.
FileDrop
, dropFiles);
WinFormsControlsTest (11)
DragDrop.cs (11)
112
if (e.Data.GetDataPresent(DataFormats.
FileDrop
)
113
&& e.Data.GetData(DataFormats.
FileDrop
) is string[] files
159
if (e.Data.GetDataPresent(DataFormats.
FileDrop
)
160
&& e.Data.GetData(DataFormats.
FileDrop
) is string[] files
252
else if (e.Data.GetDataPresent(DataFormats.
FileDrop
)
253
&& e.Data.GetData(DataFormats.
FileDrop
) is string[] files
294
else if (e.Data.GetDataPresent(DataFormats.
FileDrop
)
295
&& e.Data.GetData(DataFormats.
FileDrop
) is string[] files
317
if (e.Data.GetDataPresent(DataFormats.
FileDrop
)
346
&& e.Data.GetDataPresent(DataFormats.
FileDrop
)
537
DataObject data = new(DataFormats.
FileDrop
,