Table of Contents

Constructor EnvelopeLayout

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

EnvelopeLayout(int, int, int?, int?, int?, int?)

Initializes a layout.

public EnvelopeLayout(int width, int height, int? addressFromLeft = null, int? addressFromTop = null, int? returnFromLeft = null, int? returnFromTop = null)

Parameters

width int

The envelope's width (its longer side, laid out landscape).

height int

The envelope's height.

addressFromLeft int?

The delivery address's distance from the page's left, or null for Word's centre.

addressFromTop int?

The delivery address's distance from the page's top, or null for Word's bottom.

returnFromLeft int?

The return address's distance from the page's left, or null for the margin.

returnFromTop int?

The return address's distance from the page's top, or null for the margin.

Exceptions

ArgumentOutOfRangeException

A size or position is not one an envelope can have.