Table of Contents

Method Create

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

Create(LabelLayout, IReadOnlyList<string>?)

Creates a sheet of labels: Word's Labels > New Document when lines are given (the address in every label, a paragraph per line), else an empty merge sheet (Start Mail Merge > Labels) whose labels after the first start with «Next Record».

public static WordDocument Create(LabelLayout layout, IReadOnlyList<string>? lines = null)

Parameters

layout LabelLayout

The label's geometry.

lines IReadOnlyList<string>

The address, or null or empty for a merge sheet.

Returns

WordDocument

The new document.

Exceptions

ArgumentNullException

layout is null, or a line is.

ArgumentException

Too many lines, or a line too long or holding a control character.