Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 c# 中的字符串之前添加一个水平制表符并插入到 word 文档中。我如何在字符串的开头附加 ASCII 代码 09 = HT(水平制表符)以供单词读取。谢谢。
这就是你的意思吗?
var str= "\t" + "Hello world";
如果要将其插入字符串的前面,请执行以下操作:
String str = "Hello world"; str = str.Insert(0, "\t");