Accessing the Windows clipboard
How can you access clipboar开发者_如何转开发d content using the .NET framework?
Check the Clipboard
class and its SetText
\ GetText
methods.
See also this tutorial: Clipboard Copy and Paste with C#
Access to the clipboard in .NET is available through the
System.Windows.Forms.Clipboard
class.
You can use the Clipboard class. Documentation and demos are in Clipboard Class (System.Windows.Forms).
精彩评论