32 references to GetDataObject
ComDisabled.Tests (2)
ClipboardComTests.cs (2)
32ITypedDataObject dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject; 49ITypedDataObject returnedDataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject;
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)
116Return Clipboard.GetDataObject()
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
58clipboard.GetDataObject().GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetDataObject()?.GetData(DataFormats.UnicodeText));
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1045IDataObject? dataObj = Clipboard.GetDataObject();
System\Windows\Forms\OLE\Clipboard.cs (4)
200GetDataObject() is IDataObject dataObject && dataObject.GetDataPresent(format, autoConvert: autoConvert); 249GetDataObject() is IDataObject dataObject ? dataObject.GetData(format, autoConvert) : null; 416|| GetDataObject() is not { } dataObject) 473IDataObject? data = GetDataObject();
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 (19)
System\Windows\Forms\ClipboardTests.cs (19)
122DataObject result1 = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 123DataObject result2 = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 274DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 287DataObject actual = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 301DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 316DataObject actual = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 330DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 582IDataObject? clipboardDataObject = Clipboard.GetDataObject(); 587IDataObject? clipboardDataObject2 = Clipboard.GetDataObject(); 598IDataObject? clipboardDataObject = Clipboard.GetDataObject(); 665DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 910DataObject dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 932dataObject = Clipboard.GetDataObject().Should().BeOfType<DataObject>().Subject; 947IDataObject dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<IDataObject>().Subject; 981ITypedDataObject returnedDataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ITypedDataObject>().Subject; 1018ComTypes.IDataObject dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ComTypes.IDataObject>().Subject; 1082DataObject dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<DataObject>().Subject; 1106IDataObject received = Clipboard.GetDataObject().Should().BeAssignableTo<IDataObject>().Subject; 1113JsonDataObject received = Clipboard.GetDataObject().Should().BeOfType<JsonDataObject>().Subject;