更新时间:2023-02-08 08:55:34
行号是文档或节级别的设置,并且受PageSetup
对象的控制.要简单地在整个文档中将其关闭:
Line numbering is an document- or section-level setting, and it's controlled over the PageSetup
object. To simply turn it off throughout the document:
Word.Document doc = wdApp.ActiveDocument;
doc.PageSetup.LineNumbering.Active = false;