Method Create
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
layoutLabelLayoutThe label's geometry.
linesIReadOnlyList<string>The address, or null or empty for a merge sheet.
Returns
- WordDocument
The new document.
Exceptions
- ArgumentNullException
layoutis null, or a line is.- ArgumentException
Too many lines, or a line too long or holding a control character.