11 implementations of GetDataPresent
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
57public bool GetDataPresent(Type format) => throw new NotImplementedException();
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
112public bool GetDataPresent(Type format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
438bool IDataObject.GetDataPresent(Type format) => GetDataPresent(format.FullName!);
System\Windows\Forms\OLE\DataObject.cs (1)
107public virtual bool GetDataPresent(Type format) => format is not null && GetDataPresent(format.FullName!);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
111public 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 (5)
System\Windows\Forms\ClipboardTests.cs (1)
613bool IDataObject.GetDataPresent(Type format) => false;
System\Windows\Forms\DataObjectComTests.cs (1)
58public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (1)
2401public 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();
11 references to GetDataPresent
System.Windows.Forms (6)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (2)
64if (_owner.AllowItemReorder && e.Data is not null && e.Data.GetDataPresent(typeof(ToolStripItem))) 105if (_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)
112public 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 (4)
DragDropTests.cs (4)
70if (e.Data?.GetDataPresent(typeof(Button)) ?? false) 77if (e.Data?.GetDataPresent(typeof(Button)) ?? false) 758if (e.Data is null || !e.Data.GetDataPresent(typeof(string))) 826if (e.Data is not null && e.Data.GetDataPresent(typeof(string)))