14 implementations of GetData
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
75public object GetData(string format) => throw new NotImplementedException();
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
87public object? GetData(string format) => _winFormsDataObject.GetData(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
553public object? GetData(string format) => GetData(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.cs (1)
236public virtual object? GetData(string format) => GetData(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
81public 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)
629object IDataObject.GetData(string format) => format == "Foo" ? "Bar" : null!; 1137public 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)
2678public 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();
23 references to GetData
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 (5)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
87public object? GetData(string format) => _winFormsDataObject.GetData(format);
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (3)
58if (_dataObject.GetData(formatName) is DragDropFormat dragDropFormat) 120if (_dataObject.GetData(format) is not object data) 249if (_dataObject.GetDataPresent(formatName) && _dataObject.GetData(formatName) is DragDropFormat dragDropFormat)
System\Windows\Forms\OLE\DragDropHelper.cs (1)
251if (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)
601clipboardDataObject.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