32 references to GetDataObject
ComDisabled.Tests (2)
ClipboardComTests.cs (2)
32
ITypedDataObject dataObject = Clipboard.
GetDataObject
().Should().BeAssignableTo<ITypedDataObject>().Subject;
49
ITypedDataObject returnedDataObject = Clipboard.
GetDataObject
().Should().BeAssignableTo<ITypedDataObject>().Subject;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
StringCopyPaste\WpfStringCopyPasteService.cs (2)
36
var dataObject = Clipboard.
GetDataObject
();
69
var dataObject = Clipboard.
GetDataObject
();
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
116
Return Clipboard.
GetDataObject
()
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
58
clipboard.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)
1045
IDataObject? dataObj = Clipboard.
GetDataObject
();
System\Windows\Forms\OLE\Clipboard.cs (4)
200
GetDataObject
() is IDataObject dataObject && dataObject.GetDataPresent(format, autoConvert: autoConvert);
249
GetDataObject
() is IDataObject dataObject ? dataObject.GetData(format, autoConvert) : null;
416
||
GetDataObject
() is not { } dataObject)
473
IDataObject? data =
GetDataObject
();
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\CommandSet.cs (2)
1846
bool clipboardOperationSuccessful = ExecuteSafely(Clipboard.
GetDataObject
, false, out IDataObject? dataObj);
3095
bool clipboardOperationSuccessful = ExecuteSafely(Clipboard.
GetDataObject
, false, out IDataObject? dataObj);
System.Windows.Forms.Tests (19)
System\Windows\Forms\ClipboardTests.cs (19)
122
DataObject result1 = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
123
DataObject result2 = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
274
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
287
DataObject actual = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
301
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
316
DataObject actual = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
330
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
582
IDataObject? clipboardDataObject = Clipboard.
GetDataObject
();
587
IDataObject? clipboardDataObject2 = Clipboard.
GetDataObject
();
598
IDataObject? clipboardDataObject = Clipboard.
GetDataObject
();
665
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
910
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
932
dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
947
IDataObject dataObject = Clipboard.
GetDataObject
().Should().BeAssignableTo<IDataObject>().Subject;
981
ITypedDataObject returnedDataObject = Clipboard.
GetDataObject
().Should().BeAssignableTo<ITypedDataObject>().Subject;
1018
ComTypes.IDataObject dataObject = Clipboard.
GetDataObject
().Should().BeAssignableTo<ComTypes.IDataObject>().Subject;
1082
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeAssignableTo<DataObject>().Subject;
1106
IDataObject received = Clipboard.
GetDataObject
().Should().BeAssignableTo<IDataObject>().Subject;
1113
JsonDataObject received = Clipboard.
GetDataObject
().Should().BeOfType<JsonDataObject>().Subject;