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)
108object? IDataObject.GetData(string format) => _winFormsDataObject.GetData(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
432object? 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)
76public 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 (5)
System\Windows\Forms\ClipboardTests.cs (1)
582object 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)
103public object GetData(string format) => throw new NotImplementedException();
System\Windows\Forms\ToolStripItemTests.cs (1)
10242public 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)
108object? IDataObject.GetData(string format) => _winFormsDataObject.GetData(format);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
434object? 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) 119object? data = _dataObject.GetData(format); 238if (_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)
554clipboardDataObject.GetData("Foo").Should().Be("Bar");
System.Windows.Forms.UI.IntegrationTests (3)
DragDropTests.cs (3)
295data = e.Data?.GetData(DataFormats.Serializable); 1051&& e.Data.GetData(DataFormats.FileDrop) is string[] fileNames 1066&& 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