Implemented interface member:
method
GetData
System.Windows.Forms.IDataObject.GetData(System.String)
14 references to GetData
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
100public virtual object? GetData(Type format) => format is null ? null : GetData(format.FullName!);
System.Windows.Forms.Tests (13)
System\Windows\Forms\ClipboardTests.cs (1)
644dataObject.GetData(DataFormats.Text).Should().Be(testString);
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (1)
115dataObject.GetData(format).Should().BeSameAs(input);
System\Windows\Forms\DataObjectTests.cs (8)
250dataObject.GetData(format).Should().BeNull(); 273.Setup(o => o.GetData(format)) 279mockDataObject.Object.GetData(format).Should().BeSameAs(result); 293dataObject.GetData(format).Should().BeSameAs(result); 359.Setup(o => o.GetData(formatName)) 363mockDataObject.Verify(o => o.GetData(formatName), Times.Exactly(expectedCallCount)); 1028dataObject.GetData(format).Should().Be(input); 1559data.GetData(DataFormats.EnhancedMetafile).Should().BeNull();
System\Windows\Forms\DragDropHelperTests.cs (3)
111DragDropFormat dragDropFormat = (DragDropFormat)dataObject.GetData(DragDropHelper.DRAGIMAGEBITS); 135DragDropFormat dragDropFormat = (DragDropFormat)dataObject.GetData(DragDropHelper.DRAGIMAGEBITS); 250if (dataObject.GetData(format) is DragDropFormat dragDropFormat)