本文整理汇总了VB.NET中System.Windows.Forms.Clipboard.ContainsFileDropList方法的典型用法代码示例。如果您正苦于以下问题:VB.NET Clipboard.ContainsFileDropList方法的具体用法?VB.NET Clipboard.ContainsFileDropList怎么用?VB.NET Clipboard.ContainsFileDropList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Clipboard
的用法示例。
在下文中一共展示了Clipboard.ContainsFileDropList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: SwapClipboardFileDropList
' Demonstrates SetFileDropList, ContainsFileDroList, and GetFileDropList
Public Function SwapClipboardFileDropList(ByVal replacementList _
As System.Collections.Specialized.StringCollection) _
As System.Collections.Specialized.StringCollection
Dim returnList As System.Collections.Specialized.StringCollection _
= Nothing
If Clipboard.ContainsFileDropList() Then
returnList = Clipboard.GetFileDropList()
Clipboard.SetFileDropList(replacementList)
End If
Return returnList
End Function
示例2: Clipboard.ContainsFileDropList()
' 导入命名空间
Imports System.Drawing.Drawing2D
Imports System
Imports System.Drawing.Text
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Math
Imports System.Xml.Serialization
Imports System.IO
Imports System.Collections.Specialized
Public Class MainClass
Shared Sub Main()
'Copy some files then run this program
If Clipboard.ContainsFileDropList() Then
Dim file_names As StringCollection = Clipboard.GetFileDropList()
For Each file_name As String In file_names
Console.WriteLine(file_name)
Next file_name
End If
End Sub
End Class