Click or drag to resize

PageSetup Class

Represents the setup of a page within a document.
Inheritance Hierarchy
System Object
Spire.Doc OwnerHolder
Spire.Doc.Documents.XML DocumentSerializable
Spire.Doc PageSetup

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class PageSetup : DocumentSerializable

The PageSetup type exposes the following members.

Properties
Name Description
Public property Bidi
Gets or sets whether section contains right-to-left text.
Public property Borders
Gets page borders collection
Public property CharacterSpacingControl
Character Spacing Control.
Public property ClientHeight
Gets width of client area.
Public property ClientWidth
Gets width of client area.
Public property ColumnsLineBetween
Gets or sets the value specifies if a vertical line is draw between each of the text columns in the this section.
Public property DefaultTabWidth
Gets or sets the length of the auto tab.
Public property DifferentFirstPageHeaderFooter
Setting to specify that the current section has a different header/footer for first page.
Public property DifferentOddAndEvenPagesHeaderFooter
True if the document has different headers and footers for odd-numbered and even-numbered pages.
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property EqualColumnWidth
Gets or sets a value indicating whether equal column width.
Public property FooterDistance
Gets or sets footer height in points.
Public property GridType
Gets or Sets the grid type of this section.
Public property Gutter
Gets or sets extra space added to the margin for document binding in points.
Public property HeaderDistance
Gets or sets height of header in points.
Public property IsFrontPageBorder
Gets or sets a value indicating whether this instance is front page border.
Public property IsTopGutter
Gets or sets the value that determines whether use Top Gutter.
Public property LineNumberingDistanceFromText
Gets or setsdistance from text in lines numbering
Public property LineNumberingRestartMode
Returns or sets line numbering mode
Public property LineNumberingStartValue
Gets or setsline numbering start value
Public property LineNumberingStep
Gets or sets line numbering step
Public property LinesPerPage
Gets or sets the number of lines per page in the document grid.
Public property Margins
Gets or sets page margins in points.
Public property Orientation
Returns or sets orientation of a page.
Public property PageBorderIncludeFooter
Gets or sets a value indicating whether the page border include the footer. If the page border is not measured from the text extents using a value of text in the PageBorderOffsetFrome, then it can be ignored.
Public property PageBorderIncludeHeader
Gets or sets a value indicating whether the page border include the header. If the page border is not measured from the text extents using a value of text in the PageBorderOffsetFrome, then it can be ignored.
Public property PageBorderOffsetFrom
Gets or sets the position of page border
Public property PageBordersApplyType
Gets or sets the value that determine on which pages border is applied
Public property PageNumberStyle
Gets or sets the page number style.
Public property PageSize
Gets or sets page size in points.
Public property PageStartingNumber
Gets or sets the page starting number.
Public property RestartPageNumbering
Gets or sets a value indicating whether to restart page numbering.
Public property VerticalAlignment
Gets or setsvertical alignment.
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Protected method CloneImpl (Inherited from DocumentSerializable .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides DocumentSerializable InitXDLSHolder .)
Public method InsertPageNumbers
Inserts the page numbers.
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ReadXmlAttributes (Overrides DocumentSerializable ReadXmlAttributes(IXDLSAttributeReader) .)
Protected method ReadXmlContent (Inherited from DocumentSerializable .)
Protected method RestoreReference (Inherited from DocumentSerializable .)
Public method ToString
Returns a string that represents the current object.
(Overrides Object ToString .)
Protected method WriteXmlAttributes (Overrides DocumentSerializable WriteXmlAttributes(IXDLSAttributeWriter) .)
Protected method WriteXmlContent (Inherited from DocumentSerializable .)
Top
Fields
Name Description
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also