[]
Represents a page setup. This object exposes all page setup attributes (page margin, paper size, and so on) as properties.
public class PageSetup
Gets or sets a value indicating whether a section is presented using a right-to-left page direction. This property only affects section-level properties, and does not affect the layout of text within the contents of the section.
public bool Bidi { get; set; }
Gets options that control page borders in a section.
public PageBorderCollection Borders { get; }
Gets the client area height (where content can be placed).
public float ClientHeight { get; }
Gets the client area width (where content can be placed).
public float ClientWidth { get; }
Gets or sets a value indicating whether a section has a different header and footer for its first page.
public bool DifferentFirstPageHeaderFooter { get; set; }
Gets options that control numbering and positioning of endnotes in a section.
public EndnoteOptions EndnoteOptions { get; }
Gets options that control numbering and positioning of footnotes in a section.
public FootnoteOptions FootnoteOptions { get; }
Gets options that control page grid for all pages in a section.
public PageGrid Grid { get; }
Gets options that control line numbering in a section.
public LineNumbering LineNumbering { get; }
Gets options that control page margins for all pages in a section.
public PageMargin Margin { get; }
Gets options that control how a multiple page document is printed out.
public MultiPagePrinting MultiPagePrinting { get; }
Gets or sets a value indicating whether the document has different headers and footers for odd-numbered and even-numbered pages.
Note that changing this property affects all sections in the document.
public bool OddAndEvenPagesHeaderFooter { get; set; }
Gets options that control page numbering in a section.
public PageNumbering PageNumbering { get; }
Gets options that control paper tray to use for a section.
public PaperSource PaperSource { get; }
Gets or sets the type of section break for a section.
public SectionStart SectionStart { get; set; }
Gets options that control page size for all pages in a section.
public PageSize Size { get; }
Gets or sets a value indicating whether endnotes are printed at the end of the next section that doesn't suppress endnotes. Suppressed endnotes are printed before the endnotes in that section.
public bool SuppressEndnotes { get; set; }
Returns a collection that represents the set of text columns.
public TextColumnCollection TextColumns { get; }
Gets or sets the reading order and alignment for a section.
public TextFlowDirection TextFlowDirection { get; set; }
Gets or sets the vertical alignment of text on each page in a section.
public VerticalAlignment VerticalAlignment { get; set; }
Resets page setup to default values.
public void ClearFormatting()