【发布时间】:2012-08-14 13:08:30
【问题描述】:
Clipboard.SetText("") 给我一个错误 - “值不能为空”。那么如何使用Clipboard.SetText复制一个空字符串呢?
我已经完成了Clipboard.Clear()。它确实清除了剪贴板,但它不能帮助我粘贴一个空字符串
有什么建议吗?
【问题讨论】:
-
为什么要粘贴空字符串?您需要粘贴新行吗?
-
Probably the same issue as me : he wanted to keep it nice and simple without a special case when the selection is an empty string.我很想知道在允许“正常”字符串时是否有技术原因阻止空字符串。