Table of Contents

Constructor ListTemplate

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

ListTemplate(string, IReadOnlyList<NumberingLevel>)

Initializes a template from its levels (level 0 first; at most nine).

public ListTemplate(string name, IReadOnlyList<NumberingLevel> levels)

Parameters

name string

A name for the template, as a gallery would show it.

levels IReadOnlyList<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.