14 references to GetData
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (1)
97Return Clipboard.GetData(format)
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
46clipboard.GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetData(DataFormats.UnicodeText));
System.Windows.Forms (2)
System\Windows\Forms\OLE\Clipboard.cs (2)
221public static Stream? GetAudioStream() => GetData(DataFormats.WaveAudioConstant) as Stream; 267return GetData(ConvertToDataFormats(format)) as string ?? string.Empty;
System.Windows.Forms.Tests (10)
System\Windows\Forms\ClipboardTests.cs (10)
105object? result = Clipboard.GetData(format!); 107result = Clipboard.GetData(format!); 162Clipboard.GetData(DataFormats.WaveAudio).Should().BeOfType<MemoryStream>().Which.ToArray().Should().Equal(audioBytes); 174Clipboard.GetData(DataFormats.WaveAudio).Should().BeNull(); 194Clipboard.GetData(DataFormats.WaveAudio).Should().BeOfType<MemoryStream>().Which.ToArray().Should().Equal(audioBytes); 206Clipboard.GetData(DataFormats.WaveAudio).Should().BeNull(); 224Clipboard.GetData(format).Should().Be(data); 249Clipboard.GetData("MyData").Should().BeNull(); 517Clipboard.GetData(format).Should().Be(Color.Black); 529Clipboard.GetData(format).Should().BeOfType<NotSupportedException>();