11 implementations of GetData
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
53public object GetData(string format) => throw new NotImplementedException();
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
108public object? GetData(string format) => _winFormsDataObject.GetData(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
434object? IDataObject.GetData(string format) => ((IDataObject)this).GetData(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.cs (1)
98public virtual object? GetData(string format) => GetData(format, autoConvert: true);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
60public 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 (5)
System\Windows\Forms\ClipboardTests.cs (1)
607object IDataObject.GetData(string format) => format == "Foo" ? "Bar" : null!;
System\Windows\Forms\DataObjectComTests.cs (1)
54public object GetData(string format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (1)
2396public 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();
24 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)
55clipboard.GetDataObject().GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetDataObject()?.GetData(DataFormats.UnicodeText));
System.Windows.Forms (6)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
108public object? GetData(string format) => _winFormsDataObject.GetData(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
436object? IDataObject.GetData(Type format) => ((IDataObject)this).GetData(format.FullName!);
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (3)
57if (_dataObject.GetData(formatName) is DragDropFormat dragDropFormat) 119if (_dataObject.GetData(format) is not object data) 241if (_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)
579clipboardDataObject.GetData("Foo").Should().Be("Bar");
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (3)
294data = (ListViewItem?)e.Data?.GetData(DataFormats.Serializable); 1049&& e.Data.GetData(DataFormats.FileDrop) is string[] fileNames 1064&& 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