Document Methods |
The Document type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Accept |
Accepts a visitor.
(Overrides NodeAccept(DocumentVisitor).) |
![]() ![]() | AcceptAllRevisions |
Accepts all tracked changes in the document.
|
![]() ![]() | AppendChild |
Adds the specified node to the end of the list of child nodes for this node.
(Inherited from CompositeNode.) |
![]() ![]() | AppendDocument(Document, ImportFormatMode) |
Appends the specified document to the end of this document.
|
![]() ![]() | AppendDocument(Document, ImportFormatMode, ImportFormatOptions) |
Appends the specified document to the end of this document.
|
![]() ![]() | Cleanup |
Cleans unused styles and lists from the document.
|
![]() ![]() | Cleanup(CleanupOptions) |
Cleans unused styles and lists from the document depending on given CleanupOptions.
|
![]() ![]() | Clone |
Performs a deep copy of the Document.
|
![]() ![]() | Clone(Boolean) |
Creates a duplicate of the node.
(Inherited from Node.) |
![]() ![]() | Compare(Document, String, DateTime) |
Compares this document with another document producing changes as number of edit and format revisions Revision.
|
![]() ![]() | Compare(Document, String, DateTime, CompareOptions) |
Compares this document with another document producing changes as a number of edit and format revisions Revision.
Allows to specify comparison options using CompareOptions.
|
![]() ![]() | CopyStylesFromTemplate(String) |
Copies styles from the specified template to a document.
|
![]() ![]() | CopyStylesFromTemplate(Document) |
Copies styles from the specified template to a document.
|
![]() ![]() | EnsureMinimum |
If the document contains no sections, creates one section with one paragraph.
|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | ExpandTableStylesToDirectFormatting |
Converts formatting specified in table styles into direct formatting on tables in the document.
|
![]() ![]() | ExtractPages |
Returns the Document object representing specified range of pages.
|
![]() ![]() | GetAncestor(Type) |
Gets the first ancestor of the specified object type.
(Inherited from Node.) |
![]() ![]() | GetAncestor(NodeType) |
Gets the first ancestor of the specified NodeType.
(Inherited from Node.) |
![]() ![]() | GetChild |
Returns an Nth child node that matches the specified type.
(Inherited from CompositeNode.) |
![]() ![]() | GetChildNodes |
Returns a live collection of child nodes that match the specified type.
(Inherited from CompositeNode.) |
![]() ![]() | GetEnumerator |
Provides support for the for each style iteration over the child nodes of this node.
(Inherited from CompositeNode.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetPageInfo |
Gets the page size, orientation and other information about a page that might be useful for printing or rendering.
|
![]() ![]() | GetText |
Gets the text of this node and of all its children.
(Inherited from CompositeNode.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | ImportNode(Node, Boolean) | Imports a node from another document to the current document. |
![]() ![]() | ImportNode(Node, Boolean, ImportFormatMode) | Imports a node from another document to the current document with an option to control formatting. |
![]() ![]() | IndexOf |
Returns the index of the specified child node in the child node array.
(Inherited from CompositeNode.) |
![]() ![]() | InsertAfter |
Inserts the specified node immediately after the specified reference node.
(Inherited from CompositeNode.) |
![]() ![]() | InsertBefore |
Inserts the specified node immediately before the specified reference node.
(Inherited from CompositeNode.) |
![]() ![]() | JoinRunsWithSameFormatting |
Joins runs with same formatting in all paragraphs of the document.
|
![]() ![]() | NextPreOrder |
Gets next node according to the pre-order tree traversal algorithm.
(Inherited from Node.) |
![]() ![]() | NormalizeFieldTypes |
Changes field type values FieldType of FieldStart, FieldSeparator, FieldEnd
in the whole document so that they correspond to the field types contained in the field codes.
|
![]() ![]() | PrependChild |
Adds the specified node to the beginning of the list of child nodes for this node.
(Inherited from CompositeNode.) |
![]() ![]() | PreviousPreOrder |
Gets the previous node according to the pre-order tree traversal algorithm.
(Inherited from Node.) |
![]() ![]() |
Prints the whole document to the default printer.
| |
![]() ![]() | Print(PrinterSettings) |
Prints the document according to the specified printer settings,
using the standard (no User Interface) print controller.
|
![]() ![]() | Print(String) |
Print the whole document to the specified printer,
using the standard (no User Interface) print controller.
|
![]() ![]() | Print(PrinterSettings, String) |
Prints the document according to the specified printer settings,
using the standard (no User Interface) print controller and a document name.
|
![]() ![]() | Protect(ProtectionType) |
Protects the document from changes without changing the existing password or assigns a random password.
|
![]() ![]() | Protect(ProtectionType, String) |
Protects the document from changes and optionally sets a protection password.
|
![]() ![]() | Remove |
Removes itself from the parent.
(Inherited from Node.) |
![]() ![]() | RemoveAllChildren |
Removes all the child nodes of the current node.
(Inherited from CompositeNode.) |
![]() ![]() | RemoveChild |
Removes the specified child node.
(Inherited from CompositeNode.) |
![]() ![]() | RemoveExternalSchemaReferences |
Removes external XML schema references from this document.
|
![]() ![]() | RemoveMacros |
Removes all macros (the VBA project) as well as toolbars and command customizations from the document.
|
![]() ![]() | RemoveSmartTags |
Removes all SmartTag descendant nodes of the current node.
(Inherited from CompositeNode.) |
![]() ![]() | RenderToScale |
Renders a document page into a Graphics object to a specified scale.
|
![]() ![]() | RenderToSize |
Renders a document page into a Graphics object to a specified size.
|
![]() ![]() | Save(String) |
Saves the document to a file. Automatically determines the save format from the extension.
|
![]() ![]() | Save(Stream, SaveFormat) |
Saves the document to a stream using the specified format.
|
![]() ![]() | Save(Stream, SaveOptions) |
Saves the document to a stream using the specified save options.
|
![]() ![]() | Save(String, SaveFormat) |
Saves the document to a file in the specified format.
|
![]() ![]() | Save(String, SaveOptions) |
Saves the document to a file using the specified save options.
|
![]() ![]() | Save(HttpResponse, String, ContentDisposition, SaveOptions) |
Sends the document to the client browser.
|
![]() ![]() | SelectNodes |
Selects a list of nodes matching the XPath expression.
(Inherited from CompositeNode.) |
![]() ![]() | SelectSingleNode |
Selects the first Node that matches the XPath expression.
(Inherited from CompositeNode.) |
![]() ![]() | StartTrackRevisions(String) |
Starts automatically marking all further changes you make to the document programmatically as revision changes.
|
![]() ![]() | StartTrackRevisions(String, DateTime) |
Starts automatically marking all further changes you make to the document programmatically as revision changes.
|
![]() ![]() | StopTrackRevisions |
Stops automatic marking of document changes as revisions.
|
![]() | ToString | (Inherited from Object.) |
![]() ![]() | ToString(SaveFormat) |
Exports the content of the node into a string in the specified format.
(Inherited from Node.) |
![]() ![]() | ToString(SaveOptions) |
Exports the content of the node into a string using the specified save options.
(Inherited from Node.) |
![]() ![]() | UnlinkFields |
Unlinks fields in the whole document.
|
![]() ![]() | Unprotect |
Removes protection from the document regardless of the password.
|
![]() ![]() | Unprotect(String) |
Removes protection from the document if a correct password is specified.
|
![]() ![]() | UpdateFields |
Updates the values of fields in the whole document.
|
![]() ![]() | UpdateListLabels |
Updates list labels for all list items in the document.
|
![]() ![]() | UpdatePageLayout |
Rebuilds the page layout of the document.
|
![]() ![]() | UpdateTableLayout |
Updates widths of cells and tables in the document according to their preferred widths and content.
You do not need to call this method if the tables appear correct in the output document.
|
![]() ![]() | UpdateThumbnail |
Updates Thumbnail of the document using default options.
|
![]() ![]() | UpdateThumbnail(ThumbnailGeneratingOptions) |
Updates Thumbnail of the document according to the specified options.
|
![]() ![]() | UpdateWordCount |
Updates word count properties of the document.
|
![]() ![]() | UpdateWordCount(Boolean) |
Updates word count properties of the document, optionally updates Lines property.
|