不使用剪贴板类复制和粘贴 [英] Copy and paste without using Clipboard Class

查看:117
本文介绍了不使用剪贴板类复制和粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#开发一个winform应用程序。我有菜单,如编辑 - >复制和编辑 - >粘贴。



而不是使用

I am developing a winform application using C#. I have menu like Edit -> Copy and Edit -> Paste.

Instead of using

Clipboard

类进行复制和粘贴我可以使用操作系统的能力复制并粘贴文本,图像,链接等...

class to do copying and pasting can I use Operating System's ability to Copy and Paste text, image, link, etc...

推荐答案

当您使用剪贴板类时, 使用操作系统复制和粘贴功能。

只有一个剪贴板,Clipboard类包含的每个(有用)方法的静态特性反映了这一点。它只是OS系统的接口类。
When you use the Clipboard class, you are using the OS copy and paste capability.
There is one and only one clipboard, and the static nature of every (useful) method that the Clipboard class contains reflects that. It is just an interface class for the OS system.


这篇关于不使用剪贴板类复制和粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆