20 references to GetDataObject
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
StringCopyPaste\WpfStringCopyPasteService.cs (2)
36var dataObject = Clipboard.GetDataObject(); 69var dataObject = Clipboard.GetDataObject();
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
107Return Clipboard.GetDataObject()
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
55clipboard.GetDataObject().GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetDataObject()?.GetData(DataFormats.UnicodeText));
System.Windows.Forms (3)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1045IDataObject? dataObj = Clipboard.GetDataObject();
System\Windows\Forms\OLE\Clipboard.cs (2)
189GetDataObject() is IDataObject dataObject && dataObject.GetDataPresent(format, autoConvert: autoConvert); 233GetDataObject() is IDataObject dataObject ? dataObject.GetData(format, autoConvert) : null;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\CommandSet.cs (2)
1846bool clipboardOperationSuccessful = ExecuteSafely(Clipboard.GetDataObject, false, out IDataObject? dataObj); 3095bool clipboardOperationSuccessful = ExecuteSafely(Clipboard.GetDataObject, false, out IDataObject? dataObj);
System.Windows.Forms.Tests (11)
System\Windows\Forms\ClipboardTests.cs (11)
114IDataObject? result = Clipboard.GetDataObject(); 115(result == Clipboard.GetDataObject()).Should().BeFalse(); 264var dataObject = Clipboard.GetDataObject(); 278DataObject actual = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 292DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 307DataObject actual = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Which; 321DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Which; 560IDataObject? clipboardDataObject = Clipboard.GetDataObject(); 565IDataObject? clipboardDataObject2 = Clipboard.GetDataObject(); 576IDataObject? clipboardDataObject = Clipboard.GetDataObject(); 643DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Which;