Method RestartNumbering
RestartNumbering(WordDocument, Paragraph, int)
Restarts a list's numbering at a paragraph (Word's Restart at 1, Set Numbering Value): the paragraph and the rest of its list from there go to a new list instance of the same definition whose level starts at the value given.
public static DocumentEdit RestartNumbering(this WordDocument document, Paragraph paragraph, int start = 1)
Parameters
documentWordDocumentThe document that holds the paragraph.
paragraphParagraphA paragraph in a list.
startintThe number the paragraph shows, 0 to 32767.
Returns
- DocumentEdit
The edit.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The paragraph is not in
documentor in no list.- ArgumentOutOfRangeException
startis out of range.