20 references to GetDataObject
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)
107
Return Clipboard.
GetDataObject
()
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
55
clipboard.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)
1045
IDataObject? dataObj = Clipboard.
GetDataObject
();
System\Windows\Forms\OLE\Clipboard.cs (2)
189
GetDataObject
() is IDataObject dataObject && dataObject.GetDataPresent(format, autoConvert: autoConvert);
233
GetDataObject
() is IDataObject dataObject ? dataObject.GetData(format, autoConvert) : null;
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 (11)
System\Windows\Forms\ClipboardTests.cs (11)
114
IDataObject? result = Clipboard.
GetDataObject
();
115
(result == Clipboard.
GetDataObject
()).Should().BeFalse();
264
var dataObject = Clipboard.
GetDataObject
();
278
DataObject actual = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
292
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Subject;
307
DataObject actual = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Which;
321
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Which;
560
IDataObject? clipboardDataObject = Clipboard.
GetDataObject
();
565
IDataObject? clipboardDataObject2 = Clipboard.
GetDataObject
();
576
IDataObject? clipboardDataObject = Clipboard.
GetDataObject
();
643
DataObject dataObject = Clipboard.
GetDataObject
().Should().BeOfType<DataObject>().Which;