Discover the PageSetup LineNumberRestartMode property to control line numbering—choose between restarting at new pages or continuous numbering for seamless documents....beginning of a new page or section or runs continuously. public...enable line numbering for a section. Document doc = new Document...