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)
112bool IDataObject.GetDataPresent(Type format) => _winFormsDataObject.GetDataPresent(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
436bool 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)
127public virtual bool GetDataPresent(Type format)
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)
588bool 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)
119public bool GetDataPresent(Type format) => throw new NotImplementedException();
System\Windows\Forms\ToolStripItemTests.cs (1)
10250public 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)
112bool IDataObject.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) 760if (e.Data is null || !e.Data.GetDataPresent(typeof(string))) 828if (e.Data is not null && e.Data.GetDataPresent(typeof(string)))