Class Document
- Namespace
- MigraDoc.DocumentObjectModel
- Assembly
- MigraDoc.DocumentObjectModel.dll
Represents a MigraDoc document.
public sealed class Document : DocumentObject
- Inheritance
-
objectDocument
- Inherited Members
- Extension Methods
Constructors
- Document()
Initializes a new instance of the Document class.
Properties
- Comment
Gets or sets a comment associated with this object.
- Culture
Gets or sets the user-defined culture used for date formatting and decimal tabstop alignment. Note for RTF rendering: Decimal tabstop alignment is done in the viewing application and always depends on the system regional settings, as culture or separators cannot be saved in rtf.
- DdlFile
Gets the DDL file name.
- DefaultPageSetup
Gets the default page setup.
- DefaultTabStop
Gets or sets the default tab stop position.
- EffectiveCulture
Gets the actual culture used for date formatting and decimal tabstop alignment. Note for RTF rendering: Decimal tabstop alignment is done in the viewing application and always depends on the system regional settings, as culture or separators cannot be saved in rtf.
- EmbeddedFiles
Gets the embedded documents of the document.
- FootnoteLocation
Gets or sets the location of the Footnote.
- FootnoteNumberStyle
Gets or sets the type of number which is used for the footnote.
- FootnoteNumberingRule
Gets or sets the rule which is used to determine the footnote number on a new page.
- FootnoteStartingNumber
Gets or sets the starting number of the footnote.
- ImagePath
Gets or sets the path for images used by the document.
- Info
Gets the document info.
- IsBoundToRenderer
Indicates whether the document is bound to a renderer. A bound document must not be modified anymore. Modifying it leads to undefined results of the rendering process.
- LastSection
Gets the last section of the document. If the document has no sections a new section is added.
- LastTable
Returns the last table in the document, or null if no table exists.
- Sections
Gets the sections of the document.
- Styles
Gets or sets the styles of the document.
- UseCmykColor
Gets or sets a value indicating whether to use the CMYK color model when rendered as PDF.
- Values
Gets the underlying internal nullable values for the properties of this document object.
Methods
- Add(Section)
Adds a new section to the document.
- Add(Style)
Adds a new style to the document styles.
- AddEmbeddedFile(string, string)
Adds an embedded file to the document.
- AddSection()
Adds a new section to the document.
- AddStyle(string, string)
Adds a new style to the document styles.
- BindToRenderer(object)
Internal function used by a renderer to bind this instance to it.
- Clone()
Creates a deep copy of this object.
- DeepCopy()
Implements the deep copy of the object.