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 206public 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)
18yield return new object[] { DataFormats.FileDrop, "FileDrop" }; 49yield return new object[] { DataFormats.FileDrop, "FileDrop", 15 };
System\Windows\Forms\DataObjectExtensionsTests.cs (1)
127dataObject.TryGetData(DataFormats.FileDrop, autoConvert, out int? _).Should().BeFalse();
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (4)
89theoryData.Add(format, null, format == DataFormats.FileDrop, format == DataFormats.Bitmap); 90theoryData.Add(format, "input", format == DataFormats.FileDrop, format == DataFormats.Bitmap); 144theoryData.Add(format, autoConvert, null, format == DataFormats.FileDrop, format == DataFormats.Bitmap); 145theoryData.Add(format, autoConvert, "input", format == DataFormats.FileDrop, format == DataFormats.Bitmap);
System\Windows\Forms\DataObjectTests.cs (19)
42DataFormats.FileDrop, 103.Setup(o => o.GetDataPresent(DataFormats.FileDrop, true)) 107mockDataObject.Verify(o => o.GetDataPresent(DataFormats.FileDrop, true), Times.Once()); 656dataObject.SetData(DataFormats.FileDrop, result); 669.Setup(o => o.GetData(DataFormats.FileDrop, true)) 673mockDataObject.Verify(o => o.GetData(DataFormats.FileDrop, true), Times.Once()); 1170theoryData.Add(format, null, format == DataFormats.FileDrop, format == DataFormats.Bitmap); 1171theoryData.Add(format, "input", format == DataFormats.FileDrop, format == DataFormats.Bitmap); 1314theoryData.Add(format, autoConvert, null, format == DataFormats.FileDrop, format == DataFormats.Bitmap); 1315theoryData.Add(format, autoConvert, "input", format == DataFormats.FileDrop, format == DataFormats.Bitmap); 1534dataObject.GetData(DataFormats.FileDrop, autoConvert: true).Should().BeEquivalentTo(filePaths.Cast<string>()); 1535dataObject.GetData(DataFormats.FileDrop, autoConvert: false).Should().BeEquivalentTo(filePaths.Cast<string>()); 1542dataObject.GetDataPresent(DataFormats.FileDrop, autoConvert: true).Should().BeTrue(); 1543dataObject.GetDataPresent(DataFormats.FileDrop, autoConvert: false).Should().BeTrue(); 1559.Setup(o => o.SetData(DataFormats.FileDrop, true, It.IsAny<string[]>())) 1562mockDataObject.Verify(o => o.SetData(DataFormats.FileDrop, true, It.IsAny<string[]>()), Times.Once()); 1571.Setup(o => o.SetData(DataFormats.FileDrop, true, It.IsAny<string[]>())) 1575mockDataObject.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)
22DataFormats.FileDrop,
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (6)
1089DataObject 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 1149DataObject data = new(DataFormats.FileDrop, dropFiles);
WinFormsControlsTest (11)
DragDrop.cs (11)
112if (e.Data.GetDataPresent(DataFormats.FileDrop) 113&& e.Data.GetData(DataFormats.FileDrop) is string[] files 159if (e.Data.GetDataPresent(DataFormats.FileDrop) 160&& e.Data.GetData(DataFormats.FileDrop) is string[] files 252else if (e.Data.GetDataPresent(DataFormats.FileDrop) 253&& e.Data.GetData(DataFormats.FileDrop) is string[] files 294else if (e.Data.GetDataPresent(DataFormats.FileDrop) 295&& e.Data.GetData(DataFormats.FileDrop) is string[] files 317if (e.Data.GetDataPresent(DataFormats.FileDrop) 346&& e.Data.GetDataPresent(DataFormats.FileDrop) 537DataObject data = new(DataFormats.FileDrop,