Class PageSetup
Represents a PageSetup.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class PageSetup
Constructors
PageSetup()
Initializes a new instance of the PageSetup class.
Declaration
public PageSetup()
Properties
Bidi
Specifies that this section contains bidirectional (complex scripts) text.
Declaration
public bool Bidi { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BorderAlwaysInFront
Specifies where the page border is positioned relative to intersecting texts and objects.
Declaration
public bool BorderAlwaysInFront { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BorderAppliesTo
Specifies which pages the page border is printed on.
Declaration
public PageBorderAppliesTo BorderAppliesTo { get; set; }
Property Value
| Type | Description |
|---|---|
| PageBorderAppliesTo |
BorderDistanceFrom
Gets or sets border distance from.
Declaration
public PageBorderDistanceFrom BorderDistanceFrom { get; set; }
Property Value
| Type | Description |
|---|---|
| PageBorderDistanceFrom |
BorderSurroundsFooter
Specifies whether the page border includes or excludes the footer.
Declaration
public bool BorderSurroundsFooter { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BorderSurroundsHeader
Specifies whether the page border includes or excludes the header.
Declaration
public bool BorderSurroundsHeader { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Borders
Gets or sets borders.
Declaration
public BorderCollection Borders { get; }
Property Value
| Type | Description |
|---|---|
| BorderCollection |
BottomMargin
Returns or sets the distance (in points) between the bottom edge of the page and the bottom boundary of the body text.
Declaration
public double BottomMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
CharactersPerLine
Gets or sets the number of characters per line in the document grid.
Declaration
public int CharactersPerLine { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DifferentFirstPageHeaderFooter
True if a different header or footer is used on the first page.
Declaration
public bool DifferentFirstPageHeaderFooter { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
EndnoteOptions
Gets the endnote numbering and placement options for this section.
Declaration
public EndnoteOptions EndnoteOptions { get; }
Property Value
| Type | Description |
|---|---|
| EndnoteOptions |
FirstPageTray
Gets or sets the paper tray (bin) to use for the first page of a section. The value is implementation (printer) specific.
Declaration
public int FirstPageTray { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
FooterDistance
Returns or sets the distance (in points) between the footer and the bottom of the page.
Declaration
public double FooterDistance { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
FootnoteOptions
Gets or sets footnote options.
Declaration
public FootnoteOptions FootnoteOptions { get; }
Property Value
| Type | Description |
|---|---|
| FootnoteOptions |
Gutter
Gets or sets the amount of extra space added to the margin for document binding.
Declaration
public double Gutter { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
HeaderDistance
Returns or sets the distance (in points) between the header and the top of the page.
Declaration
public double HeaderDistance { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LayoutMode
Gets or sets layout mode.
Declaration
public SectionLayoutMode LayoutMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SectionLayoutMode |
LeftMargin
Returns or sets the distance (in points) between the left edge of the page and the left boundary of the body text.
Declaration
public double LeftMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LineNumberCountBy
Gets or sets line number count by.
Declaration
public int LineNumberCountBy { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
LineNumberDistanceFromText
Gets or sets distance between the right edge of line numbers and the left edge of the document.
Declaration
public double LineNumberDistanceFromText { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LineNumberRestartMode
Gets or sets the way line numbering runs that is, whether it starts over at the beginning of a new page or section or runs continuously.
Declaration
public LineNumberRestartMode LineNumberRestartMode { get; set; }
Property Value
| Type | Description |
|---|---|
| LineNumberRestartMode |
LinePitch
Gets or sets the document grid line pitch in points.
Declaration
public double LinePitch { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
LineStartingNumber
Gets or sets the starting line number.
Declaration
public int LineStartingNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
LinesPerPage
Gets or sets the number of lines per page in the document grid.
Declaration
public int LinesPerPage { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MultiplePages
Gets or sets multiple pages.
Declaration
public MultiplePagesType MultiplePages { get; set; }
Property Value
| Type | Description |
|---|---|
| MultiplePagesType |
OddAndEvenPagesHeaderFooter
True if the document has different headers and footers for odd-numbered and even-numbered pages.
Declaration
public bool OddAndEvenPagesHeaderFooter { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Orientation
Returns or sets the orientation of the page.
Declaration
public Orientation Orientation { get; set; }
Property Value
| Type | Description |
|---|---|
| Orientation |
OtherPagesTray
Gets or sets the paper tray (bin) to be used for all but the first page of a section. The value is implementation (printer) specific.
Declaration
public int OtherPagesTray { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PageHeight
Returns or sets the height of the page in points.
Declaration
public double PageHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
PageNumberStyle
Gets or sets the page number format.
Declaration
public NumberStyle PageNumberStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| NumberStyle |
PageStartingNumber
Gets or sets the starting page number of the section.
Declaration
public int PageStartingNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PageWidth
Returns or sets the width of the page in points.
Declaration
public double PageWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
PaperSize
Returns or sets the paper size.
Declaration
public PaperSize PaperSize { get; set; }
Property Value
| Type | Description |
|---|---|
| PaperSize |
RestartPageNumbering
True if page numbering restarts at the beginning of the section.
Declaration
public bool RestartPageNumbering { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RightMargin
Returns or sets the distance (in points) between the right edge of the page and the right boundary of the body text.
Declaration
public double RightMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
RtlGutter
Gets or sets whether Microsoft Word uses gutters for the section based on a right-to-left language or a left-to-right language.
Declaration
public bool RtlGutter { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SectionStart
Returns or sets the type of section break for the specified object.
Declaration
public SectionStart SectionStart { get; set; }
Property Value
| Type | Description |
|---|---|
| SectionStart |
SheetsPerBooklet
Returns or sets the number of pages to be included in each booklet.
Declaration
public int SheetsPerBooklet { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SuppressEndnotes
True if 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.
Declaration
public bool SuppressEndnotes { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TextColumns
Returns a collection that represents the set of text columns.
Declaration
public TextColumnCollection TextColumns { get; }
Property Value
| Type | Description |
|---|---|
| TextColumnCollection |
TextOrientation
Allows to specify TextOrientation for the whole page.
Declaration
public TextOrientation TextOrientation { get; set; }
Property Value
| Type | Description |
|---|---|
| TextOrientation |
TopMargin
Gets or sets top margin.
Declaration
public double TopMargin { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
VerticalAlignment
Gets or sets vertical alignment.
Declaration
public PageVerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| PageVerticalAlignment |