Table of Contents

Method RestartNumbering

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

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

document WordDocument

The document that holds the paragraph.

paragraph Paragraph

A paragraph in a list.

start int

The number the paragraph shows, 0 to 32767.

Returns

DocumentEdit

The edit.

Exceptions

ArgumentNullException

An argument is null.

ArgumentException

The paragraph is not in document or in no list.

ArgumentOutOfRangeException

start is out of range.