Method Create
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
layoutEnvelopeLayoutThe envelope's size and positions.
deliveryIReadOnlyList<string>The delivery address, or null or empty for a merge envelope.
returnAddressIReadOnlyList<string>The return address, or null or empty for none.
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.