Implemented interface member:
method
GetDataPresent
System.Windows.Forms.IDataObject.GetDataPresent(System.String)
15 references to GetDataPresent
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
133public virtual bool GetDataPresent(Type format) => format is not null && GetDataPresent(format.FullName!);
System.Windows.Forms.Tests (14)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
110dataObject.GetDataPresent(format).Should().BeTrue();
System\Windows\Forms\DataObjectTests.cs (13)
598dataObject.GetDataPresent(format).Should().BeFalse(); 621.Setup(o => o.GetDataPresent(format)) 627mockDataObject.Object.GetDataPresent(format).Should().Be(result); 641dataObject.GetDataPresent(format).Should().Be(result); 706.Setup(o => o.GetDataPresent(expectedFormatName)) 710mockDataObject.Verify(o => o.GetDataPresent(expectedFormatName), Times.Exactly(expectedCallCount)); 1273dataObject.GetDataPresent(format).Should().BeTrue(); 1302dataObject.GetDataPresent(format).Should().BeTrue(); 2900data.GetDataPresent(customFormat).Should().BeTrue(); 2901data.GetDataPresent("notExist").Should().BeFalse(); 2950dataObject.GetDataPresent(format).Should().BeTrue(); 2963wrapped.GetDataPresent(format).Should().BeTrue(); 3178wrapped.GetDataPresent("Foo");