Table of Contents

Method Create

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

Create(EnvelopeLayout, IReadOnlyList<string>?, IReadOnlyList<string>?)

Creates an envelope: the delivery address a paragraph per line (none, or empty: a merge envelope, one empty line for the fields), and the return address above it (none: no return address).

public static WordDocument Create(EnvelopeLayout layout, IReadOnlyList<string>? delivery = null, IReadOnlyList<string>? returnAddress = null)

Parameters

layout EnvelopeLayout

The envelope's size and positions.

delivery IReadOnlyList<string>

The delivery address, or null or empty for a merge envelope.

returnAddress IReadOnlyList<string>

The return address, or null or empty for none.

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.