-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
ClipboardProxy.xml
1649 lines (1433 loc) · 82.1 KB
/
ClipboardProxy.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="ClipboardProxy" FullName="Microsoft.VisualBasic.MyServices.ClipboardProxy">
<TypeSignature Language="C#" Value="public class ClipboardProxy" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi ClipboardProxy extends System.Object" />
<TypeSignature Language="DocId" Value="T:Microsoft.VisualBasic.MyServices.ClipboardProxy" />
<TypeSignature Language="VB.NET" Value="Public Class ClipboardProxy" />
<TypeSignature Language="F#" Value="type ClipboardProxy = class" />
<TypeSignature Language="C++ CLI" Value="public ref class ClipboardProxy" />
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Core</AssemblyName>
<AssemblyVersion>10.0.4.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides methods for manipulating the Clipboard.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Items moved or copied to the Clipboard persist even after the application is shut down.
Data on the Clipboard can be in any data format, also called a Clipboard format. For a list of predefined formats to use with the Clipboard, see <xref:System.Windows.Forms.DataFormats>. When an item is moved or copied to the Clipboard, items in other formats are cleared. To make other formats persist, use <xref:Microsoft.VisualBasic.VariantType.DataObject>, which copies everything existing on the current Clipboard, including items pasted from other applications. Place data on the Clipboard in multiple formats to maximize the possibility that a target application, whose format requirements you might not know, can successfully retrieve the data.
Because all Windows applications share the system Clipboard, the contents may change when you switch to another application.
A class must be serializable for it to be put on the Clipboard. For more information, see [Serialization - C#](/dotnet/csharp/programming-guide/concepts/serialization/) or [Serialization - Visual Basic](/dotnet/visual-basic/programming-guide/concepts/serialization/).
When accessing the Clipboard remotely, a <xref:System.Threading.ThreadStateException> is thrown unless the accessing thread operates in STA (single-threaded apartment) mode. To resolve this issue, set the `ThreadApartmentState` to `STA`. For more information, see <xref:System.STAThreadAttribute>.
For more information, see [Storing Data to and Reading from the Clipboard](/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard).
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example reads text from the Clipboard into the string `textOnClipboard`.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnMyClipboard/VB/Class1.vb" id="Snippet6":::
This example will fail if there is no text on the Clipboard.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Windows.Forms.Clipboard" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
</Docs>
<Members>
<Member MemberName="Clear">
<MemberSignature Language="C#" Value="public void Clear ();" />
<MemberSignature Language="ILAsm" Value=".method public instance void Clear() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.Clear" />
<MemberSignature Language="VB.NET" Value="Public Sub Clear ()" />
<MemberSignature Language="F#" Value="member this.Clear : unit -> unit" Usage="clipboardProxy.Clear " />
<MemberSignature Language="C++ CLI" Value="public:
 void Clear();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Clears the Clipboard.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Security.Permissions.UIPermission> class controls access to the Clipboard, and the associated <xref:System.Security.Permissions.UIPermissionClipboard> enumeration value indicates the level of access. For more information, see [Additional Security Considerations in Windows Forms](/dotnet/framework/winforms/additional-security-considerations-in-windows-forms).
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example clears the Clipboard.
```
My.Computer.Clipboard.Clear()
```
This removes all data from the Clipboard.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="M:System.Windows.Forms.Clipboard.Clear" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading from the Clipboard (Visual Basic)</related>
</Docs>
</Member>
<Member MemberName="ContainsAudio">
<MemberSignature Language="C#" Value="public bool ContainsAudio ();" />
<MemberSignature Language="ILAsm" Value=".method public instance bool ContainsAudio() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsAudio" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsAudio () As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsAudio : unit -> bool" Usage="clipboardProxy.ContainsAudio " />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsAudio();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Indicates whether the Clipboard contains audio data.</summary>
<returns>
<see langword="True" /> if audio data is stored on the Clipboard; otherwise <see langword="False" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example determines whether the Clipboard contains audio data and displays the result.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet10":::
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="M:System.Windows.Forms.Clipboard.ContainsAudio" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetAudioStream" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetAudio" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/playing-sounds">Playing Sounds</related>
</Docs>
</Member>
<Member MemberName="ContainsData">
<MemberSignature Language="C#" Value="public bool ContainsData (string format);" />
<MemberSignature Language="ILAsm" Value=".method public instance bool ContainsData(string format) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsData(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsData (format As String) As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsData : string -> bool" Usage="clipboardProxy.ContainsData format" />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsData(System::String ^ format);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<param name="format">
<see langword="String" />. Name of the custom format to be checked. Required.</param>
<summary>Indicates whether the Clipboard contains data in the specified custom format.</summary>
<returns>
<see langword="True" /> if data in the specified custom format is stored on the Clipboard; otherwise <see langword="False" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If you have placed custom formatted data on the Clipboard, this method allows you to check the Clipboard for data in that format.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example checks for data in the custom format `specialFormat`.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet6":::
Replace `specialFormat` with the name of the custom format you wish to check.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="M:System.Windows.Forms.Clipboard.ContainsData(System.String)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetData(System.String)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetDataObject" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetData(System.String,System.Object)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetDataObject(System.Windows.Forms.DataObject)" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="ContainsFileDropList">
<MemberSignature Language="C#" Value="public bool ContainsFileDropList ();" />
<MemberSignature Language="ILAsm" Value=".method public instance bool ContainsFileDropList() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsFileDropList" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsFileDropList () As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsFileDropList : unit -> bool" Usage="clipboardProxy.ContainsFileDropList " />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsFileDropList();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a <see langword="Boolean" /> indicating whether the Clipboard contains a file drop list.</summary>
<returns>
<see langword="True" /> if a file drop list is stored on the Clipboard; otherwise <see langword="False" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A file drop list is a collection of strings containing path information for files.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example determines if there is a file drop list on the Clipboard and adds the list to the `ListBox.lstFiles` if they exist.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet12":::
This code will create an exception if there is no `ListBox` named `lstFiles`.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="M:System.Windows.Forms.Clipboard.ContainsFileDropList" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetFileDropList" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetFileDropList(System.Collections.Specialized.StringCollection)" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="ContainsImage">
<MemberSignature Language="C#" Value="public bool ContainsImage ();" />
<MemberSignature Language="ILAsm" Value=".method public instance bool ContainsImage() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsImage" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsImage () As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsImage : unit -> bool" Usage="clipboardProxy.ContainsImage " />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsImage();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a <see langword="Boolean" /> indicating whether an image is stored on the Clipboard.</summary>
<returns>
<see langword="True" /> if an image is stored on the Clipboard; otherwise <see langword="False" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example checks to see if there is an image on the Clipboard and, if so, gets the image and adds it to `PictureBox1`.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet8":::
This example depends on the existence of a `PictureBox` named `PictureBox1`.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="M:System.Windows.Forms.Clipboard.ContainsImage" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetImage" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetImage(System.Drawing.Image)" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<MemberGroup MemberName="ContainsText">
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Determines if there is text on the Clipboard.</summary>
</Docs>
</MemberGroup>
<Member MemberName="ContainsText">
<MemberSignature Language="C#" Value="public bool ContainsText ();" />
<MemberSignature Language="ILAsm" Value=".method public instance bool ContainsText() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsText" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsText () As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsText : unit -> bool" Usage="clipboardProxy.ContainsText " />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsText();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Determines if there is text on the Clipboard.</summary>
<returns>
<see langword="True" /> if the Clipboard contains text; otherwise <see langword="False" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Possible formats are <xref:System.Windows.Forms.TextDataFormat.CommaSeparatedValue>, <xref:System.Windows.Forms.TextDataFormat.Html>, <xref:System.Windows.Forms.TextDataFormat.Rtf> and <xref:System.Windows.Forms.TextDataFormat.UnicodeText>.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example determines if HTML text is stored on the Clipboard and reads from the Clipboard if it does.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet5":::
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Windows.Forms.TextDataFormat" />
<altmember cref="Overload:System.Windows.Forms.Clipboard.ContainsText" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetText" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetText" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="ContainsText">
<MemberSignature Language="C#" Value="public bool ContainsText (System.Windows.Forms.TextDataFormat format);" />
<MemberSignature Language="ILAsm" Value=".method public instance bool ContainsText(valuetype System.Windows.Forms.TextDataFormat format) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsText(System.Windows.Forms.TextDataFormat)" />
<MemberSignature Language="VB.NET" Value="Public Function ContainsText (format As TextDataFormat) As Boolean" />
<MemberSignature Language="F#" Value="member this.ContainsText : System.Windows.Forms.TextDataFormat -> bool" Usage="clipboardProxy.ContainsText format" />
<MemberSignature Language="C++ CLI" Value="public:
 bool ContainsText(System::Windows::Forms::TextDataFormat format);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="format" Type="System.Windows.Forms.TextDataFormat" />
</Parameters>
<Docs>
<param name="format">
<see cref="T:System.Windows.Forms.TextDataFormat" />. If specified, identifies what text format to be checked for. Required.</param>
<summary>Determines if there is text on the Clipboard.</summary>
<returns>
<see langword="True" /> if the Clipboard contains text; otherwise <see langword="False" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Possible formats are <xref:System.Windows.Forms.TextDataFormat.CommaSeparatedValue>, <xref:System.Windows.Forms.TextDataFormat.Html>, <xref:System.Windows.Forms.TextDataFormat.Rtf> and <xref:System.Windows.Forms.TextDataFormat.UnicodeText>.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example determines if HTML text is stored on the Clipboard and reads from the Clipboard if it does.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet5":::
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Windows.Forms.TextDataFormat" />
<altmember cref="Overload:System.Windows.Forms.Clipboard.ContainsText" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetText" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetText" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="GetAudioStream">
<MemberSignature Language="C#" Value="public System.IO.Stream GetAudioStream ();" />
<MemberSignature Language="ILAsm" Value=".method public instance class System.IO.Stream GetAudioStream() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetAudioStream" />
<MemberSignature Language="VB.NET" Value="Public Function GetAudioStream () As Stream" />
<MemberSignature Language="F#" Value="member this.GetAudioStream : unit -> System.IO.Stream" Usage="clipboardProxy.GetAudioStream " />
<MemberSignature Language="C++ CLI" Value="public:
 System::IO::Stream ^ GetAudioStream();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IO.Stream</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves an audio stream from the Clipboard.</summary>
<returns>A <see cref="T:System.IO.Stream" /> object containing audio data or <see langword="Nothing" /> if the Clipboard does not contain any audio data.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example retrieves an audio stream from the Clipboard and plays it.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet11":::
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.IO.Stream" />
<altmember cref="M:System.Windows.Forms.Clipboard.GetAudioStream" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsAudio" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetAudio" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="GetData">
<MemberSignature Language="C#" Value="public object GetData (string format);" />
<MemberSignature Language="ILAsm" Value=".method public instance object GetData(string format) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetData(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetData (format As String) As Object" />
<MemberSignature Language="F#" Value="member this.GetData : string -> obj" Usage="clipboardProxy.GetData format" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ GetData(System::String ^ format);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<param name="format">
<see langword="String" />. Name of the data format. Required.</param>
<summary>Retrieves data in a custom format from the Clipboard.</summary>
<returns>An <see langword="Object" /> representing the Clipboard data or <see langword="Nothing" /> if the Clipboard does not contain any data that is in the specified format or can be converted to that format.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example reads data in the format `specialformat` from the Clipboard and writes it to file.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet7":::
Replace `specialformat` with the custom data format you wish to retrieve.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="M:System.Windows.Forms.Clipboard.GetData(System.String)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsData(System.String)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetDataObject" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetData(System.String,System.Object)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetDataObject(System.Windows.Forms.DataObject)" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="GetDataObject">
<MemberSignature Language="C#" Value="public System.Windows.Forms.IDataObject GetDataObject ();" />
<MemberSignature Language="ILAsm" Value=".method public instance class System.Windows.Forms.IDataObject GetDataObject() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetDataObject" />
<MemberSignature Language="VB.NET" Value="Public Function GetDataObject () As IDataObject" />
<MemberSignature Language="F#" Value="member this.GetDataObject : unit -> System.Windows.Forms.IDataObject" Usage="clipboardProxy.GetDataObject " />
<MemberSignature Language="C++ CLI" Value="public:
 System::Windows::Forms::IDataObject ^ GetDataObject();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Windows.Forms.IDataObject</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves data from the Clipboard as an <see cref="T:System.Windows.Forms.IDataObject" />.</summary>
<returns>An <see cref="T:System.Windows.Forms.IDataObject" /> object that represents the data currently on the Clipboard, or <see langword="Nothing" /> if there is no data on the Clipboard.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This is an advanced member; it does not show in IntelliSense unless you click the **All** tab.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example reads data from the Clipboard in the form of an <xref:System.Windows.Forms.IDataObject> and then writes it to a file.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet1":::
Replace `C:\mylogfile` with the name of the file to which you want to write.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Windows.Forms.IDataObject" />
<altmember cref="M:System.Windows.Forms.Clipboard.GetDataObject" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsData(System.String)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetData(System.String)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetData(System.String,System.Object)" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetDataObject(System.Windows.Forms.DataObject)" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="GetFileDropList">
<MemberSignature Language="C#" Value="public System.Collections.Specialized.StringCollection GetFileDropList ();" />
<MemberSignature Language="ILAsm" Value=".method public instance class System.Collections.Specialized.StringCollection GetFileDropList() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetFileDropList" />
<MemberSignature Language="VB.NET" Value="Public Function GetFileDropList () As StringCollection" />
<MemberSignature Language="F#" Value="member this.GetFileDropList : unit -> System.Collections.Specialized.StringCollection" Usage="clipboardProxy.GetFileDropList " />
<MemberSignature Language="C++ CLI" Value="public:
 System::Collections::Specialized::StringCollection ^ GetFileDropList();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Specialized.StringCollection</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves a collection of strings representing file names from the Clipboard.</summary>
<returns>A <see cref="T:System.Collections.Specialized.StringCollection" /> containing file names or <see langword="Nothing" /> if the Clipboard does not contain any data that is in the <see cref="F:System.Windows.Forms.DataFormats.FileDrop" /> format or can be converted to that format.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is available only for non-server applications.
A file drop list is a collection of strings containing path information for files.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example determines if there is a file drop list on the Clipboard and adds the list to the `ListBox.lstFiles` if they exist.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet9":::
This code creates an exception if there is no `ListBox` named `lstFiles`.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Collections.Specialized.StringCollection" />
<altmember cref="M:System.Windows.Forms.Clipboard.GetFileDropList" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsFileDropList" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetFileDropList(System.Collections.Specialized.StringCollection)" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading From the Clipboard</related>
</Docs>
</Member>
<Member MemberName="GetImage">
<MemberSignature Language="C#" Value="public System.Drawing.Image GetImage ();" />
<MemberSignature Language="ILAsm" Value=".method public instance class System.Drawing.Image GetImage() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetImage" />
<MemberSignature Language="VB.NET" Value="Public Function GetImage () As Image" />
<MemberSignature Language="F#" Value="member this.GetImage : unit -> System.Drawing.Image" Usage="clipboardProxy.GetImage " />
<MemberSignature Language="C++ CLI" Value="public:
 System::Drawing::Image ^ GetImage();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Drawing.Image</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves an image from the Clipboard.</summary>
<returns>An <see cref="T:System.Drawing.Image" /> representing the Clipboard image data or <see langword="Nothing" /> if the Clipboard does not contain any data that is in the <see cref="F:System.Windows.Forms.DataFormats.Bitmap" /> format or can be converted to that format.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example checks to see if there is an image on the Clipboard before retrieving it and assigning it to `PictureBox1`.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbRefClipbd/VB/Class1.vb" id="Snippet4":::
For this example to function correctly, there must be a `PictureBox` named `PictureBox1` on your form.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Drawing.Image" />
<altmember cref="M:System.Windows.Forms.Clipboard.GetImage" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsImage" />
<altmember cref="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetImage(System.Drawing.Image)" />
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading from the Clipboard (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
</Docs>
</Member>
<MemberGroup MemberName="GetText">
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Retrieves text from the Clipboard.</summary>
</Docs>
</MemberGroup>
<Member MemberName="GetText">
<MemberSignature Language="C#" Value="public string GetText ();" />
<MemberSignature Language="ILAsm" Value=".method public instance string GetText() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetText" />
<MemberSignature Language="VB.NET" Value="Public Function GetText () As String" />
<MemberSignature Language="F#" Value="member this.GetText : unit -> string" Usage="clipboardProxy.GetText " />
<MemberSignature Language="C++ CLI" Value="public:
 System::String ^ GetText();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Retrieves text from the Clipboard.</summary>
<returns>The Clipboard text data or an empty string if the Clipboard does not contain data in the <see cref="F:System.Windows.Forms.DataFormats.Text" /> or <see cref="F:System.Windows.Forms.TextDataFormat.UnicodeText" /> format, depending on the operating system.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Possible formats are <xref:System.Windows.Forms.TextDataFormat.CommaSeparatedValue>, <xref:System.Windows.Forms.TextDataFormat.Html>, <xref:System.Windows.Forms.TextDataFormat.Rtf> and <xref:System.Windows.Forms.TextDataFormat.UnicodeText>.
## Availability by Project Type
|Project type|Available|
|------------------|---------------|
|Windows Application|**Yes**|
|Class Library|**Yes**|
|Console Application|**Yes**|
|Windows Control Library|**Yes**|
|Web Control Library|No|
|Windows Service|**Yes**|
|Web Site|No|
## Examples
This example reads text from the Clipboard into the string `textOnClipboard`.
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbcnMyClipboard/VB/Class1.vb" id="Snippet6":::
This example fails if there is no text on the Clipboard.
]]></format>
</remarks>
<altmember cref="T:Microsoft.VisualBasic.Devices.Computer" />
<altmember cref="T:System.Windows.Forms.TextDataFormat" />
<altmember cref="Overload:System.Windows.Forms.Clipboard.GetText" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.ContainsText" />
<altmember cref="Overload:Microsoft.VisualBasic.MyServices.ClipboardProxy.SetText" />
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
<related type="Article" href="/dotnet/visual-basic/developing-apps/programming/computer-resources/storing-data-to-and-reading-from-the-clipboard">Storing Data to and Reading from the Clipboard (Visual Basic)</related>
</Docs>
</Member>
<Member MemberName="GetText">
<MemberSignature Language="C#" Value="public string GetText (System.Windows.Forms.TextDataFormat format);" />
<MemberSignature Language="ILAsm" Value=".method public instance string GetText(valuetype System.Windows.Forms.TextDataFormat format) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.VisualBasic.MyServices.ClipboardProxy.GetText(System.Windows.Forms.TextDataFormat)" />
<MemberSignature Language="VB.NET" Value="Public Function GetText (format As TextDataFormat) As String" />
<MemberSignature Language="F#" Value="member this.GetText : System.Windows.Forms.TextDataFormat -> string" Usage="clipboardProxy.GetText format" />
<MemberSignature Language="C++ CLI" Value="public:
 System::String ^ GetText(System::Windows::Forms::TextDataFormat format);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic</AssemblyName>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.VisualBasic.Forms</AssemblyName>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="format" Type="System.Windows.Forms.TextDataFormat" />
</Parameters>
<Docs>
<param name="format">
<see cref="T:System.Windows.Forms.TextDataFormat" />. If specified, identifies what text format should be retrieved. Default is <see cref="F:System.Windows.Forms.TextDataFormat.CommaSeparatedValue" />. Required.</param>
<summary>Retrieves text from the Clipboard.</summary>
<returns>The Clipboard text data or an empty string if the Clipboard does not contain data in the specified format.</returns>