11 implementations of GetDataPresent
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
56public bool GetDataPresent(string format) => throw new NotImplementedException();
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
111bool IDataObject.GetDataPresent(string format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
458public bool GetDataPresent(string format) => GetDataPresent(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.cs (1)
105public virtual bool GetDataPresent(string format) => GetDataPresent(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
162public virtual 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 (5)
System\Windows\Forms\ClipboardTests.cs (1)
587bool IDataObject.GetDataPresent(string format) => format == "Foo";
System\Windows\Forms\DataObjectComTests.cs (1)
57public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (1)
2400public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\DragEventArgsTests.cs (1)
117public bool GetDataPresent(string format) => throw new NotImplementedException();
System\Windows\Forms\ToolStripItemTests.cs (1)
10248public bool GetDataPresent(string format) => throw new NotImplementedException();
31 references to GetDataPresent
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)
111bool IDataObject.GetDataPresent(string format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (4)
51if (!_dataObject.GetDataPresent(formatName)) 114if (!_dataObject.GetDataPresent(format)) 204if (!_dataObject.GetDataPresent(DataFormats.GetFormat(pformatetc->cfFormat).Name)) 238if (_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 (1)
System\Windows\Forms\ClipboardTests.cs (1)
553clipboardDataObject!.GetDataPresent("Foo").Should().BeTrue();
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
285if (e.Data?.GetDataPresent(DataFormats.Serializable) ?? false) 292if (e.Data?.GetDataPresent(DataFormats.Serializable) ?? false) 1050&& e.Data.GetDataPresent(DataFormats.FileDrop) 1065&& 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")