| Document Methods | 
The Document type exposes the following members.
 Methods
Methods
 
| Name | Description | |
|---|---|---|
|   | AcceptChanges | 
 Accepts changes tracked from the moment of last change acceptance.
 | 
|   | AddListStyle | 
 Adds new list style to document.
 | 
|   | AddParagraphStyle | 
 Adds new paragraph style to the document.
 | 
|   | AddSection | 
 Adds new section to document.
 | 
|   | AddStyle | 
 Adds the style to the document style.
 | 
|   | CheckProtectionPassWord | 
 Check that the password entered is the same as the permission protection password
 | 
|   | ClearCustomFonts | 
 Clear the custom fonts.
 | 
|   | ClearCustomFontsFolders | Obsolete. 
 Clear the custom fonts.
 | 
|     | ClearGlobalCustomFonts | 
 Clear the global custom fonts.
 | 
|     | ClearGlobalCustomFontsFolders | Obsolete. 
 Clear the global custom fonts.
 | 
|   | ClearMacros | 
 Removes the macros from the document.
 | 
|     | ClearSystemFontCache | 
 Clears the memory used by cached system fonts.
 | 
|   | Clone | 
 Clones itself.
 | 
|   | CloneCompatibilityTo | 
 Clones the current document compatibility to the destination document.
 | 
|   | CloneDefaultStyleTo | 
 Clones the current document default style to the destination document.
 | 
|   | CloneImpl | (Overrides DocumentSerializable CloneImpl .) | 
|   | CloneThemesTo | 
 Clones the current document theme style to the destination document.
 | 
|   | CloneWebSettingsTo | 
 clone Websettings to other document
 | 
|   | Close | 
 Closes this instance.
 | 
|   | Compare(Document, String) | 
 Compares this document with another document.
 | 
|   | Compare(Document, String, CompareOptions) | 
 Compares this document with another document.
 | 
|   | Compare(Document, String, DateTime) | 
 Compares this document with another document.
 | 
|   | Compare(Document, String, DateTime, CompareOptions) | 
 Compares this document with another document.
 | 
|   | CreateLayoutInfo | (Overrides DocumentBase CreateLayoutInfo .) | 
|   | CreateListFormatImpl | |
|   | CreateMinialDocument | 
 Create a minial document,one empty section to the document and one empty paragraph to created section.
 | 
|   | CreateParagraph | 
 Creates the paragraph.
 | 
|   | CreateParagraphItem | 
 Creates new paragraph item instance.
 | 
|   | CreateTextBoxCollectionImpl | |
|   | Dispose | 
 Prerforms application-defined tasks associated with freeing,releasing, or
resetting unmanaged resources.
 | 
|   | Encrypt | 
 Encrypts the document.
 | 
|   | Equals | 
 Determines whether the specified object is equal to the current object.
(Inherited from
 Object
.) | 
|   | Finalize | 
 Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from
 Object
.) | 
|   | FindAllPattern(Regex) | 
 Returns all entries of matchString regex.
 | 
|   | FindAllPattern(Regex, Boolean) | 
 Returns all entries of matchString regex.
 | 
|   | FindAllString | 
 Returns all entries of matchString string, taking into consideration caseSensitive
and wholeWord options.
 | 
|   | FindPattern(Regex) | 
 Finds and returns entry of specified regular expression along with formatting.
 | 
|   | FindPattern(BodyRegion, Regex) | 
 Finds the next entry of matchString pattern.
 | 
|   | FindPatternInLine(Regex) | 
 Finds the first entry of specified pattern in single-line mode.
 | 
|   | FindPatternInLine(BodyRegion, Regex) | 
 Finds the text which fit the specified pattern starting from start.
using single-line mode.
 | 
|   | FindString(String, Boolean, Boolean) | 
 Finds and returns string along with formatting.
 | 
|   | FindString(BodyRegion, String, Boolean, Boolean) | 
 Finds the next entry of matchString string, taking into consideration caseSensitive
and wholeWord options.
 | 
|   | FindStringInLine(String, Boolean, Boolean) | 
 Finds the first entry of matchString text in single-line mode.
 | 
|   | FindStringInLine(BodyRegion, String, Boolean, Boolean) | 
 Finds the next matchString text starting from specified using single-line mode.
 | 
|   | GetHashCode | 
 Serves as the default hash function.
(Inherited from
 Object
.) | 
|   | GetIndex | 
 Returns the zero-based index of the specified entity.
(Inherited from
 DocumentContainer
.) | 
|   | GetNextWidgetSibling | 
 Gets the next sibling.
(Inherited from
 DocumentObject
.) | 
|   | GetPageCount | 
 Gets total number of pages for document.
 | 
|   | GetPreviousWidgetSibling | 
 Gets the previous widget sibling.
(Inherited from
 DocumentObject
.) | 
|   | GetSchema | |
|   | GetText | 
 Gets the document's text.
 | 
|   | GetType | 
 Gets the
 
Type
 
 of the current instance.
(Inherited from
 Object
.) | 
|     | HasDigitalSignature(Stream) | 
 Verifies the presence of a digital signature in the specified Doc/Docx stream.
 | 
|     | HasDigitalSignature(String) | 
 Verifies the presence of a digital signature in the specified Doc/Docx file.
 | 
|   | HasWriteProtection | 
 Checks if the document has write protection.
 | 
|   | ImportContent(IDocument) | 
 Imports all content into the document.
 | 
|   | ImportContent(IDocument, Boolean) | 
 Imports all content into document.
 | 
|   | ImportSection | 
 Imports section into document.
 | 
|   | InitXDLSHolder | (Overrides DocumentSerializable InitXDLSHolder .) | 
|   | InsertTextFromFile | 
 Insert text from a file.
 | 
|   | InsertTextFromStream | 
 Insert text from stream.
 | 
|   | IntegrateFontTableTo | 
 Integrate the current document font table to the destination document.
 | 
|     | IsEncrypted(Stream) | 
 Check that the document is encrypted
 | 
|     | IsEncrypted(String) | 
 Check that the document is encrypted
 | 
|   | LoadFontFallbackRuleSettings | 
 Load the font fallback rules from the xml
 | 
|   | LoadFromFile(String) | 
 Opens doc file.
 | 
|   | LoadFromFile(String, FileFormat) | 
 Opens the document from file in Xml or Microsoft Word format.
 | 
|   | LoadFromFile(String, FileFormat, XHTMLValidationType) | 
 Opens the HTML document from stream .
 | 
|   | LoadFromFile(String, FileFormat, String) | 
 Opens the document from file in Xml or Microsoft Word format.
 | 
|   | LoadFromFileInReadMode | 
 LoadFromStream new document in read-only mode.
 | 
|   | LoadFromStream(Stream, FileFormat) | 
 Opens the document from stream in Xml or Microsoft Word format.
 | 
|   | LoadFromStream(Stream, FileFormat, XHTMLValidationType) | 
 Opens the HTML document from stream .
 | 
|   | LoadFromStream(Stream, FileFormat, String) | 
 Opens the document from stream in Xml or Microsoft Word format.
 | 
|   | LoadHTML(TextReader, XHTMLValidationType) | 
 Load document in html format
 | 
|   | LoadHTML(TextReader, String, XHTMLValidationType) | 
 Load document in html format
 | 
|   | LoadRtf(Stream) | 
 Opens the rtf document from a stream.
 | 
|   | LoadRtf(TextReader) | 
 Opens the rtf document with specified encoding from a reader.
 | 
|   | LoadRtf(String) | 
 Opens the rtf document from a file.
 | 
|   | LoadRtf(Stream, Encoding) | 
 Opens the rtf document with specified encoding from a stream.
 | 
|   | LoadRtf(String, Encoding) | 
 Opens the rtf document with specified encoding from a file.
 | 
|   | LoadText(Stream) | 
 Opens the text document from a stream with default encoding utf-8.
 | 
|   | LoadText(TextReader) | 
 Opens the rtf document with specified encoding from a reader.
 | 
|   | LoadText(String) | 
 Opens the text document from a file with default encoding utf-8.
 | 
|   | LoadText(Stream, Encoding) | 
 Opens the text document with specified encoding from a stream.
 | 
|   | LoadText(String, Encoding) | 
 Opens the text document with specified encoding from a file.
 | 
|   | MemberwiseClone | 
 Creates a shallow copy of the current
 
Object
 
 .
(Inherited from
 Object
.) | 
|   | OnBeginPrint | |
|   | OnEndPrint | |
|   | OnPrintPage | |
|   | OnQueryPageSettings | |
|   | PrintMultipageToOneSheet(PagesPerSheet) | 
 Print multipage to one sheet
 | 
|   | PrintMultipageToOneSheet(PagesPerSheet, Boolean) | 
 Print multipage to one sheet
 | 
|   | Protect(ProtectionType) | 
 Protects the document.
 | 
|   | Protect(ProtectionType, String) | 
 Protects the document.
 | 
|   | ReadXmlAttributes | (Overrides DocumentSerializable ReadXmlAttributes(IXDLSAttributeReader) .) | 
|   | ReadXmlContent | (Overrides DocumentSerializable ReadXmlContent(IXDLSContentReader) .) | 
|   | RejectChanges | 
 Rejects changes tracked from the moment of last change acceptance.
 | 
|   | RemoveEncryption | 
 Removes the encryption.
 | 
|   | RenderToScale | 
 Draws a document page at the specified scale into the System.Drawing.Graphics object.
 | 
|   | RenderToSize | 
 Draws a document page at the specified size into the System.Drawing.Graphics object.
 | 
|   | Replace(Regex, TextSelection) | 
 Replaces all entries of matchString regular expression with TextRangesHolder.
 | 
|   | Replace(Regex, String) | 
 Replaces all entries of matchString regular expression with newValue string.
 | 
|   | Replace(String, TextSelection, Boolean, Boolean) | 
 Replaces all entries of matchString string with TextSelection, taking into
consideration caseSensitive and wholeWord options.
 | 
|   | Replace(String, IDocument, Boolean, Boolean) | 
 Replaces the specified matchString.
 | 
|   | Replace(String, String, Boolean, Boolean) | 
 Replaces all entries of matchString string with newValue string, taking into
consideration caseSensitive and wholeWord options.
 | 
|   | ReplaceInLine(Regex, TextSelection) | 
 Replaces the matchString pattern with matchSelection in single-line mode.
 | 
|   | ReplaceInLine(Regex, String) | 
 Replaces all entries with specified pattern with newValue text in single-line mode.
 | 
|   | ReplaceInLine(String, TextSelection, Boolean, Boolean) | 
 Replaces the matchString text with matchSelection in single-line mode.
 | 
|   | ReplaceInLine(String, String, Boolean, Boolean) | 
 Replaces all entries of matchString text with newValue text in single-line mode.
 | 
|   | ResetFindState | 
 Resets the FindPattern.
 | 
|   | ResetPageLayoutCache | 
 Reset the page layout cache data of the new engine.
 | 
|   | RestoreReference | (Inherited from DocumentSerializable .) | 
|   | SaveFontFallbackRuleSettings | 
 Save the default font fallback rules to the xml
 | 
|   | SaveToEpub(Stream, DocPicture) | 
 Saves the EPUB document.
 | 
|   | SaveToEpub(String, DocPicture) | 
 Saves the EPUB document.
 | 
|   | SaveToFile(String) | 
 Saves to file in Microsoft Word format.
 | 
|   | SaveToFile(Stream, FileFormat) | 
 Saves the document into stream in Xml or Microsoft Word format.
 | 
|   | SaveToFile(String, FileFormat) | 
 Saves the document to file in Xml or Microsoft Word format.
 | 
|   | SaveToFile(String, ToPdfParameterList) | 
 Saves the document to PDF file.
 | 
|   | SaveToFile(String, FileFormat, Byte , String) | 
 Saves document to file and digitally sign, Only DOC and DOCX are supported.
 | 
|   | SaveToFile(String, FileFormat, String, String) | 
 Saves document to file and digitally sign, Only DOC and DOCX are supported.
 | 
|   | SaveToFile(String, FileFormat, HttpResponse, HttpContentType) | 
 Saves the specified file name.
 | 
|   | SaveToImages(ImageType) | 
 Save the whole document into images
 | 
|   | SaveToImages(Int32, ImageType) | 
 Save the specified page into image
 | 
|   | SaveToImages(Int32, ImageFormat) | 
 Save the specified page into image
 | 
|   | SaveToImages(ImageType, ToImageOption) | 
 Save the specified page into image
 | 
|   | SaveToImages(ImageType, ToPdfParameterList) | |
|   | SaveToImages(Int32, Int32, ImageType) | 
 Save the specified range of pages into images
 | 
|   | SaveToStream(Stream, FileFormat) | 
 Saves the document into stream in Xml or Microsoft Word format.
 | 
|   | SaveToStream(Stream, ToPdfParameterList) | 
 Saves the document into stream.
 | 
|   | SaveToStream(Stream, FileFormat, Byte , String) | 
 Saves document to stream and digitally sign, Only DOC and DOCX are supported.
 | 
|   | SaveToStream(Stream, FileFormat, String, String) | 
 Saves document to stream and digitally sign, Only DOC and DOCX are supported.
 | 
|   | SaveToSVG | 
 Saves the SVG.
 | 
|   | SaveToSVG(String) | 
 Saves the SVG.
 | 
|   | SaveToTxt | 
 Saves to text document with specified encoding.
 | 
|   | SetCustomFonts | 
 Sets the custom font stream array.
 | 
|   | SetCustomFontsFolders | 
 Sets the path to the folder where the custom font is located.
 | 
|   | SetDateTimeOfUnitTest | |
|     | SetGlobalCustomFonts | 
 Sets the global custom font stream array.
 | 
|     | SetGlobalCustomFontsFolders( Stream ) | Obsolete. 
 Sets the global custom font stream array.
 | 
|     | SetGlobalCustomFontsFolders(String) | 
 Sets the path to the folder where the global custom font is located.
 | 
|   | SetWatermark | 
 Sets document's Picturewatermark.
 | 
|   | SetWriteProtection(String) | 
 Sets the write protection for a document using the provided password.
 | 
|   | SetWriteProtection(String, Boolean) | 
 Sets the write protection for a document with an optional password and recommended read-only setting.
 | 
|     | Sign(Stream, Byte , String) | 
 Create digitally signed word document.
Digital signature of documents support only DOC and DOCX formats.
 | 
|     | Sign(Stream, String, String) | 
 Create digitally signed word document.
 Digital signature of documents support only DOC and DOCX formats.
 | 
|   | SprBpcmUuRG9jLkRvY3Vt | |
|   | StartTrackRevisions(String) | 
 Begins making all subsequent changes made to the document programmatically as revisions.
 | 
|   | StartTrackRevisions(String, DateTime) | 
 Begins making all subsequent changes made to the document programmatically as revisions.
 | 
|   | StopTrackRevisions | 
 Stops making changes programmatically as revisions.
 | 
|   | ToString | 
 Returns a string that represents the current object.
(Inherited from
 Object
.) | 
|   | ToString(String) | 
 Exports the name and index in container of the object into a string in the specified seperator.
(Inherited from
 DocumentObject
.) | 
|   | Unprotect | 
 Unprotect the document.
 | 
|   | Unprotect(String) | 
 Unprotect the document with a password.
 | 
|   | UnWriteProtection | 
 Removes the write protection from a document by clearing the password and disabling the read-only recommendation.
 | 
|   | UnWriteProtection(String) | 
 Attempts to remove the write protection from a document by validating the provided password and, if valid, clearing the password and disabling the read-only recommendation.
 | 
|   | UpdatePageLayout | 
 Updates the page layout of the document.
 | 
|   | UpdateTableLayout | 
 Update table grid before saving the document when using the new engine.
 | 
|   | UpdateTableOfContents | 
 Update Table of contents in the document.
 | 
|   | UpdateTableOfContents(TableOfContent) | 
 Update specified Table of content in the document.
 | 
|   | UpdateTOCPageNumbers | 
 Update Table of contents page numbers in the document.
 | 
|   | UpdateTOCPageNumbers(TableOfContent) | 
 Update specified Table of content page numbers in the document.
 | 
|   | UpdateWordCount | 
 Update Paragraphs count, Word count and Character count
 | 
|   | UpdateWordCount( Char ) | 
 Update Paragraphs count, Word count and Character count.
 | 
|   | UpdateWordCount( Char , Boolean) | 
 Update Paragraphs count, Word count and Character count.
 | 
|   | WriteXmlAttributes | (Overrides DocumentSerializable WriteXmlAttributes(IXDLSAttributeWriter) .) | 
|   | WriteXmlContent | (Overrides DocumentSerializable WriteXmlContent(IXDLSContentWriter) .) | 
 See Also
See Also