13 implementations of GetData
ComDisabled.Tests (2)
ClipboardComTests.cs (1)
103object IDataObject.GetData(string format) => format == "Foo" ? "Bar" : null!;
DataObjectComTests.cs (1)
75public object GetData(string format) => throw new NotImplementedException();
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.cs (1)
228public virtual object? GetData(string format) => GetData(format, autoConvert: true);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
131public virtual object? GetData(string format)
System.Windows.Forms.Tests (8)
System\Windows\Forms\ClipboardTests.cs (2)
622object IDataObject.GetData(string format) => format == "Foo" ? "Bar" : null!; 1148public object GetData(string format) => _formatToJson[format];
System\Windows\Forms\DataObjectComTests.cs (1)
54public object GetData(string format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
157public object? GetData(string format) 184public object? GetData(string format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (1)
2759public object GetData(string format) => throw new NotImplementedException();
System\Windows\Forms\DragEventArgsTests.cs (1)
102public object GetData(string format) => throw new NotImplementedException();
System\Windows\Forms\ToolStripItemTests.cs (1)
10241public object GetData(string format) => throw new NotImplementedException();
System.Windows.Forms.TestUtilities (1)
Data\ManagedDataObject.cs (1)
14public object? GetData(string format) => format == s_format ? _data : null;
21 references to GetData
ComDisabled.Tests (1)
ClipboardComTests.cs (1)
65clipboardDataObject.GetData("Foo").Should().Be("Bar");
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
StringCopyPaste\WpfStringCopyPasteService.cs (2)
43copy.SetData(format, dataObject.GetData(format)); 73return dataObject.GetData(format) as string;
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (2)
58clipboard.GetDataObject().GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetDataObject()?.GetData(DataFormats.UnicodeText));
System.Windows.Forms (2)
System\Windows\Forms\OLE\DataObjectAdapter.cs (1)
19public object? GetData(string format) => DataObject.GetData(format);
System\Windows\Forms\OLE\DragDropHelper.cs (1)
252if (dataObject.GetData(format) is DragDropFormat dragDropFormat)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\CommandSet.cs (1)
1858object? data = dataObj?.GetData(CF_DESIGNER);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ClipboardTests.cs (1)
594clipboardDataObject.GetData("Foo").Should().Be("Bar");
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (3)
298data = (ListViewItem?)e.Data?.GetData(DataFormats.Serializable); 1108&& e.Data.GetData(DataFormats.FileDrop) is string[] fileNames 1123&& e.Data.GetData(DataFormats.FileDrop) is string[] fileNames
TrimTest (1)
Form1.cs (1)
35if (e.Data is { } dataObject && dataObject.GetData(DataFormats.UnicodeText) is string text)
WinFormsControlsTest (8)
DragDrop.cs (8)
113&& e.Data.GetData(DataFormats.FileDrop) is string[] files 160&& e.Data.GetData(DataFormats.FileDrop) is string[] files 167&& e.Data.GetData(nameof(_nyanCatBmp)) is Bitmap nyanCatBmp) 213&& e.Data.GetData(nameof(_nyanCatAscii)) is string asciiCat) 253&& e.Data.GetData(DataFormats.FileDrop) is string[] files 295&& e.Data.GetData(DataFormats.FileDrop) is string[] files 319&& e.Data.GetData("FileName") is string[] fileNames 348&& e.Data.GetData("FileName") is string[] fileNames