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