14 implementations of GetDataPresent
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
78public bool GetDataPresent(string format) => throw new NotImplementedException();
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
90public bool GetDataPresent(string format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
577public bool GetDataPresent(string format) => GetDataPresent(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.cs (1)
247public virtual bool GetDataPresent(string format) => GetDataPresent(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
157public bool GetDataPresent(string format) => GetDataPresent(format, autoConvert: true);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
176public bool GetDataPresent(string format)
System.Windows.Forms.Tests (8)
System\Windows\Forms\ClipboardTests.cs (2)
634bool IDataObject.GetDataPresent(string format) => format == "Foo"; 1140public bool GetDataPresent(string format) => _formatToJson.ContainsKey(format);
System\Windows\Forms\DataObjectComTests.cs (1)
57public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
171public bool GetDataPresent(string format) => throw new NotImplementedException(); 187public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (1)
2682public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\DragEventArgsTests.cs (1)
109public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\ToolStripItemTests.cs (1)
10244public bool GetDataPresent(string format) => throw new NotImplementedException();
35 references to GetDataPresent
ComDisabled.Tests (2)
ClipboardComTests.cs (1)
33dataObject.GetDataPresent("testData").Should().BeTrue();
DataObjectComTests.cs (1)
31typedOutData.GetDataPresent("testData").Should().BeTrue();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
StringCopyPaste\WpfStringCopyPasteService.cs (2)
42if (dataObject.GetDataPresent(format)) 71if (dataObject.GetDataPresent(format))
System.Windows.Forms (5)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
90public bool GetDataPresent(string format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (4)
52if (!_dataObject.GetDataPresent(formatName)) 115if (!_dataObject.GetDataPresent(format)) 215if (!_dataObject.GetDataPresent(DataFormats.GetFormat(pformatetc->cfFormat).Name)) 249if (_dataObject.GetDataPresent(formatName) && _dataObject.GetData(formatName) is DragDropFormat dragDropFormat)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\CommandSet.cs (1)
3101if (dataObj.GetDataPresent(CF_DESIGNER))
System.Windows.Forms.Tests (3)
System\Windows\Forms\ClipboardTests.cs (2)
600clipboardDataObject!.GetDataPresent("Foo").Should().BeTrue(); 948dataObject.GetDataPresent("testDataFormat").Should().BeTrue();
System\Windows\Forms\DataObjectTests.cs (1)
2745typedOutData.GetDataPresent("point").Should().BeTrue();
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
288if (e.Data?.GetDataPresent(DataFormats.Serializable) ?? false) 295if (e.Data?.GetDataPresent(DataFormats.Serializable) ?? false) 1107&& e.Data.GetDataPresent(DataFormats.FileDrop) 1122&& e.Data.GetDataPresent(DataFormats.FileDrop)
TrimTest (2)
Form1.cs (2)
19if (e.Data is { } dataObject && dataObject.GetDataPresent(DataFormats.UnicodeText)) 27if (e.Data is { } dataObject && dataObject.GetDataPresent(DataFormats.UnicodeText))
WinFormsControlsTest (16)
DragDrop.cs (16)
112if (e.Data.GetDataPresent(DataFormats.FileDrop) 141else if (e.Data.GetDataPresent(nameof(_nyanCatBmp))) 159if (e.Data.GetDataPresent(DataFormats.FileDrop) 166else if (e.Data.GetDataPresent(nameof(_nyanCatBmp)) 233if (e.Data.GetDataPresent(nameof(_nyanCatAscii))) 245else if (e.Data.GetDataPresent(nameof(_nyanCatBmp))) 252else if (e.Data.GetDataPresent(DataFormats.FileDrop) 275if (e.Data.GetDataPresent(nameof(_nyanCatAscii))) 287else if (e.Data.GetDataPresent(nameof(_nyanCatBmp))) 294else if (e.Data.GetDataPresent(DataFormats.FileDrop) 317if (e.Data.GetDataPresent(DataFormats.FileDrop) 318&& e.Data.GetDataPresent("FileName") 327else if (e.Data.GetDataPresent(nameof(_nyanCatAscii))) 334else if (e.Data.GetDataPresent(nameof(_nyanCatBmp))) 346&& e.Data.GetDataPresent(DataFormats.FileDrop) 347&& e.Data.GetDataPresent("FileName")