Class EnvelopeEditingExtensions
Mailings > Envelopes > Add to Document and Change Document (Phase 173, WQ-0154): the envelope Word builds (EnvelopeDocument) as the document's first section, before the letter, as one undoable edit.
public static class EnvelopeEditingExtensions
- Inheritance
-
EnvelopeEditingExtensions
- Inherited Members
Remarks
Measured against Word (tools/Probe-WordEnvelopeAddToDocument.ps1): the envelope goes before the document's
first paragraph wherever the caret is, as a section of its own (the return address, the delivery address, an empty
paragraph that ends the section); the Envelope Address and Envelope Return styles are written again for the
envelope's layout (without a return address, a return style the document has is left as it is). A document whose first section is already an envelope (its paragraphs all in those two styles,
the last one possibly empty, and more sections after it) has that section replaced: Word's Change Document. A
paragraph of the letter in one of those styles is not an envelope.
Methods
- AddEnvelope(WordDocument, DocumentPosition, EnvelopeLayout, IReadOnlyList<string>?, IReadOnlyList<string>?)
Adds an envelope at the start of the document, or replaces the envelope the document starts with.
- StartsWithEnvelope(WordDocument)
Whether the document starts with an envelope Word added: more than one section, and the first one's paragraphs all in Envelope Address or Envelope Return (at least one address), the last one possibly empty.