How to copy to the clipboard in F#?

≡放荡痞女 提交于 2020-07-18 10:32:22

问题


And more specifically, in FSI?


回答1:


You can programatically control the clipboard using the Clipboard class in the System.Windows.Forms namespace. (The required assembly is brought in by default to FSI.)

open System.Windows.Forms
Clipboard.SetText("Hello from FSI!")


来源:https://stackoverflow.com/questions/1791747/how-to-copy-to-the-clipboard-in-f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!