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# 在 novocode DocX 中缩进项目符号列表
我使用了 IndentationFirstLine 属性,但它不能正常工作。
我需要使用 C# 在 Novacode-DocX 中缩进一个项目符号列表。
有任何想法吗?
我自己找到了。遍历生成的列表,如:
foreach (Paragraph pItem in list.Items) { pItem.IndentationBefore = int.Parse(IndentLeftValue); }
列表项实际上是可以设置缩进的段落