[]
Represents a page setup. This object exposes all page setup attributes (page margin, paper size, and so on) as properties.
public class PageSetup
Public Class PageSetup
Name | Description |
---|---|
Bidi | 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. |
Borders | Gets options that control page borders in a section. |
ClientHeight | Gets the client area height (where content can be placed). |
ClientWidth | Gets the client area width (where content can be placed). |
DifferentFirstPageHeaderFooter | Gets or sets a value indicating whether a section has a different header and footer for its first page. |
EndnoteOptions | Gets options that control numbering and positioning of endnotes in a section. |
FootnoteOptions | Gets options that control numbering and positioning of footnotes in a section. |
Grid | Gets options that control page grid for all pages in a section. |
LineNumbering | Gets options that control line numbering in a section. |
Margin | Gets options that control page margins for all pages in a section. |
MultiPagePrinting | Gets options that control how a multiple page document is printed out. |
OddAndEvenPagesHeaderFooter | 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. |
PageNumbering | Gets options that control page numbering in a section. |
PaperSource | Gets options that control paper tray to use for a section. |
SectionStart | Gets or sets the type of section break for a section. |
Size | Gets options that control page size for all pages in a section. |
SuppressEndnotes | 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. |
TextColumns | Returns a collection that represents the set of text columns. |
TextFlowDirection | Gets or sets the reading order and alignment for a section. |
VerticalAlignment | Gets or sets the vertical alignment of text on each page in a section. |
Name | Description |
---|---|
ClearFormatting() | Resets page setup to default values. |