[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.PageSetup

Class PageSetup

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a page setup. This object exposes all page setup attributes (page margin, paper size, and so on) as properties.

public class PageSetup
Inheritance
PageSetup
Inherited Members

Properties

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.

public bool Bidi { get; set; }

Property Value

bool

Borders

Gets options that control page borders in a section.

public PageBorderCollection Borders { get; }

Property Value

PageBorderCollection

ClientHeight

Gets the client area height (where content can be placed).

public float ClientHeight { get; }

Property Value

float

ClientWidth

Gets the client area width (where content can be placed).

public float ClientWidth { get; }

Property Value

float

DifferentFirstPageHeaderFooter

Gets or sets a value indicating whether a section has a different header and footer for its first page.

public bool DifferentFirstPageHeaderFooter { get; set; }

Property Value

bool

EndnoteOptions

Gets options that control numbering and positioning of endnotes in a section.

public EndnoteOptions EndnoteOptions { get; }

Property Value

EndnoteOptions

FootnoteOptions

Gets options that control numbering and positioning of footnotes in a section.

public FootnoteOptions FootnoteOptions { get; }

Property Value

FootnoteOptions

Grid

Gets options that control page grid for all pages in a section.

public PageGrid Grid { get; }

Property Value

PageGrid

LineNumbering

Gets options that control line numbering in a section.

public LineNumbering LineNumbering { get; }

Property Value

LineNumbering

Margin

Gets options that control page margins for all pages in a section.

public PageMargin Margin { get; }

Property Value

PageMargin

MultiPagePrinting

Gets options that control how a multiple page document is printed out.

public MultiPagePrinting MultiPagePrinting { get; }

Property Value

MultiPagePrinting

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.

public bool OddAndEvenPagesHeaderFooter { get; set; }

Property Value

bool

PageNumbering

Gets options that control page numbering in a section.

public PageNumbering PageNumbering { get; }

Property Value

PageNumbering

PaperSource

Gets options that control paper tray to use for a section.

public PaperSource PaperSource { get; }

Property Value

PaperSource

SectionStart

Gets or sets the type of section break for a section.

public SectionStart SectionStart { get; set; }

Property Value

SectionStart

Size

Gets options that control page size for all pages in a section.

public PageSize Size { get; }

Property Value

PageSize

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.

public bool SuppressEndnotes { get; set; }

Property Value

bool

TextColumns

Returns a collection that represents the set of text columns.

public TextColumnCollection TextColumns { get; }

Property Value

TextColumnCollection

TextFlowDirection

Gets or sets the reading order and alignment for a section.

public TextFlowDirection TextFlowDirection { get; set; }

Property Value

TextFlowDirection

VerticalAlignment

Gets or sets the vertical alignment of text on each page in a section.

public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

Methods

ClearFormatting()

Resets page setup to default values.

public void ClearFormatting()