Implemented interface members:
method
GetDataPresent
System.Windows.Forms.IDataObject.GetDataPresent(System.String)
method
GetDataPresent
System.Private.Windows.Ole.IDataObjectInternal.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)
623dataObject.GetDataPresent(format).Should().BeFalse(); 646.Setup(o => o.GetDataPresent(format)) 652mockDataObject.Object.GetDataPresent(format).Should().Be(result); 666dataObject.GetDataPresent(format).Should().Be(result); 731.Setup(o => o.GetDataPresent(expectedFormatName)) 735mockDataObject.Verify(o => o.GetDataPresent(expectedFormatName), Times.Exactly(expectedCallCount)); 1326dataObject.GetDataPresent(format).Should().BeTrue(); 1355dataObject.GetDataPresent(format).Should().BeTrue(); 2953data.GetDataPresent(customFormat).Should().BeTrue(); 2954data.GetDataPresent("notExist").Should().BeFalse(); 3003dataObject.GetDataPresent(format).Should().BeTrue(); 3016wrapped.GetDataPresent(format).Should().BeTrue(); 3231wrapped.GetDataPresent("Foo");