Table of Contents

Method SetPaper

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

SetPaper(PaperSize, PageOrientation)

Sets the page size and orientation as Word's Size and Orientation galleries do: landscape lays the paper on its side (width and height swapped) and writes w:orient="landscape".

public void SetPaper(PaperSize paper, PageOrientation orientation)

Parameters

paper PaperSize

The paper.

orientation PageOrientation

The orientation.

Exceptions

ArgumentNullException

paper is null.