Click or drag to resize

Document Properties

The Document type exposes the following members.

Properties
Name Description
Public property AutoUpdateStylesByTemplate
Gets or sets a value indicating whether updating the styles in this document to match the styles in the attached template each time you open .
Public property Background
Gets document's background
Public property Bookmarks
Gets document bookmarks.
Public property BuiltinDocumentProperties
Gets document built-in properties object.
Public property ChildObjects
Gets the child entities.
(Overrides DocumentObject ChildObjects .)
Public property Comments
Gets comments item of the document.
Public property Count
Gets count of child object.
(Inherited from DocumentContainer .)
Public property CustomDocumentProperties
Gets document custom properties object.
Public property DetectedFormatType
Returns the detected format type of the document which was loaded. .
Public property DigitalSignatures
Gets the collection of digital signatures in the current document.
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property DocumentObjectType
Gets the type of the document object.
(Overrides DocumentObject DocumentObjectType .)
Public property EmbedFontsInFile
Gets or sets a value indicating whether save fonts that are used in the document in the file. Only support for the DOCX file format.
Public property EmbedSystemFonts
Gets or sets a value indicating whether save system fonts that are used in the document in the file.
Public property EndnoteOptions
Gets or sets options that control numbering and positioning of endnotes in this document.
Public property Endnotes
Gets document endnotes.
Public property FieldOptions
Gets or sets the options for the field.
Public property Fields
Gets fields of the documnet.
Public property FirstChild
Gets the first child of the Element.
(Inherited from DocumentObject .)
Public property FootnoteOptions
Gets or sets options that control numbering and positioning of footnotes in this document.
Public property Footnotes
Gets document footnotes.
Public property ForceTableRelayout
Gets or sets a value indicating whether to force a table relayout.
Public property HasChanges
Gets a value indicating whether the document has tracked changes.
Public property HtmlBaseUrl
Gets or sets the Base path which is used to convert the relative path to absolute path.
Public property HTMLCustomComment

Gets or sets a value specifying whether parsing and writing comment of document in HTML.

Supported HTML Tag : span ,when the value of class attribute is comment

Supported HTML Tag Attribytes : data-comment / data-user / data-cid / data-date.

Public property HtmlExportOptions
Gets the save options.
Public property HTMLIdentifierPunctuations
Set the custom punctuation as sentence indentifier. Full stop, qusetion mark, exclamatory mark are default values.
Public property HTMLSentenceIdentifier

Gets or sets a value specifying whether to add identifier to a sentence when writing to HTML.

Writed HTML Attribyte : sentence.

Writed HTML Value Of Attribyte : start / end / (start,end).

Public property HTMLTrackChanges

Gets or sets a value specifying whether parsing and writing custom Change_Tracking HTML Tags are supported.

Supported HTML Tag : insert / delete.

Supported HTML Tag Attribytes : data-username / data-time.

Public property IsComposite
Indicating whether this instance is composite.
(Inherited from DocumentObject .)
Public property IsContainMacro
Indicates whether the document has macros.
Public property IsUpdateFields
Gets or sets a value indicating whether to update fields in the document.
Public property JPEGQuality
Gets/sets the quality (Q%) of the image of JPEG format, this property is only used for doc to pdf. The default value is 80.
Public property KeepSameFormat
Gets or sets a value that indicates whether to keep same formatting when this document is merged to other document.
Public property LastChild
Gets the last child of the Element.
(Inherited from DocumentObject .)
Public property LastParagraph
Gets last section object.
Public property LastSection
Gets last section of the document.
Public property LayoutOptions
Gets the layout options. The related layout settings are only supported for new engines.
Public property ListStyles
Gets document list styles.
Public property MailMerge
Gets mail merge engine.
Public property NextSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public property Owner
Gets the owner of this entity.
(Inherited from DocumentObject .)
Public property PageCount
Gets total number of pages for document.
Public property PreviousSibling
Gets the previous sibling.
(Inherited from DocumentObject .)
Public property PrintDialog
Set print parnameters
Public property PrintDocument
Gets the PrintDocument
Public property PrivateFontList
Gets the private font list.
Public property Properties
Gets the document properties.
Public property ProtectionType
Gets or sets the type of protection of the document.
Public property QuiteMode
Get / sets whether is quite mode.
Public property ReplaceFirst
Gets or sets a value indicating whether need first replacing.
Public property Sections
Gets document sections.
Public property Styles
Gets document styles.
Public property TextBoxes
Get/set textbox items of main document
Public property TOC
Gets or sets the TOC element of the word document.
Public property TrackChanges
Gets or sets a value that determines whether changes are tracked when the document is edited in applications like Microsoft Word or WPS.
Public property UseNewEngine Obsolete.
Gets a value indicating whether the new engine layout is enabled. The Spire.Doc product conversion feature has enabled the new engine way layout by default. If you want to switch to the old engine layout, use the Document constructor with the \"useNewEngine\" parameter and set the parameter \"useNewEngine\" to false.
Public property Variables
Gets or sets the document variables.
Public property ViewSetup
Gets view setup options in Microsoft word.
Public property Watermark
Gets or sets document's watermark.
Protected property WidgetCollection (Overrides DocumentContainer WidgetCollection .)
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Public property XHTMLValidateOption
Gets or sets the HTML validate option.the default value is None.
Top
See Also