Constructor ListTemplate
ListTemplate(string, IReadOnlyList<NumberingLevel>)
Initializes a template from its levels (level 0 first; at most nine).
public ListTemplate(string name, IReadOnlyList<NumberingLevel> levels)
Parameters
namestringA name for the template, as a gallery would show it.
levelsIReadOnlyList<NumberingLevel>The levels; each is copied.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
There are no levels, more than nine, or a level's number is not its place.