14 implementations of GetDataPresent
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
79public bool GetDataPresent(Type format) => throw new NotImplementedException();
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
91public bool GetDataPresent(Type format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
555public bool GetDataPresent(Type format) => GetDataPresent(format.FullName!);
System\Windows\Forms\OLE\DataObject.cs (1)
249public virtual bool GetDataPresent(Type format) => format is not null && GetDataPresent(format.FullName!);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
125public bool GetDataPresent(Type format) => GetDataPresent(format.FullName!);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
185public bool GetDataPresent(Type format)
System.Windows.Forms.Tests (8)
System\Windows\Forms\ClipboardTests.cs (2)
635bool IDataObject.GetDataPresent(Type format) => false; 1141public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectComTests.cs (1)
58public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
172public bool GetDataPresent(Type format) => throw new NotImplementedException(); 188public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (1)
2683public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\DragEventArgsTests.cs (1)
110public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\ToolStripItemTests.cs (1)
10245public bool GetDataPresent(Type format) => throw new NotImplementedException();
12 references to GetDataPresent
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (2)
63if (_owner.AllowItemReorder && e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem))) 104if (_owner.AllowItemReorder && e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem)))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
23if (e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem))) 37if (e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem))) 46if (e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem)))
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
91public bool GetDataPresent(Type format) => _winFormsDataObject.GetDataPresent(format);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
515if (e.Data.GetDataPresent(typeof(TreeNode)))
System.Windows.Forms.UI.IntegrationTests (5)
DragDropTests.cs (5)
72if (e.Data?.GetDataPresent(typeof(Button)) ?? false) 79if (e.Data?.GetDataPresent(typeof(Button)) ?? false) 507if (e.Data?.GetDataPresent(typeof(SimpleTestData)) ?? false) 817if (e.Data is null || !e.Data.GetDataPresent(typeof(string))) 885if (e.Data is not null && e.Data.GetDataPresent(typeof(string)))