Constructor EnvelopeLayout
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
widthintThe envelope's width (its longer side, laid out landscape).
heightintThe envelope's height.
addressFromLeftint?The delivery address's distance from the page's left, or null for Word's centre.
addressFromTopint?The delivery address's distance from the page's top, or null for Word's bottom.
returnFromLeftint?The return address's distance from the page's left, or null for the margin.
returnFromTopint?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.