Description
Main document class.

Namespace: Docs.Word
Assembly: Docs.Word (in Docs.Word.dll) Version: 2.3.0.0 (2.3)

Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public class Document
<SerializableAttribute> _
Public Class Document
[SerializableAttribute]
public ref class Document

Members

            
 All Members  Fields   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
AddNode(Node)
Adds the given node at the end of the last section on this document.
AddParagraph(String)
Adds the paragraph with given text at the end of the last section on this document.
AddSection()()()()
Adds an empty section at the end of document.
BasePath
Base path of documents, used by relative links (e.g. images in HTML).
Comments
List of comments.
Copy()()()()
Creates a deep copy of this Document instance.
CreateNew()()()()
Creates a new document.
DefaultStyle
Defines the default style of this document.
DocumentText
Plain text of this document.
Endnotes
List of endnotes.
FindAllParagraphs(String)
Finds all paragraphs that contain given text string.
FindAllParagraphs(String, Boolean)
Finds all paragraphs that contain given text string, considering match-case.
FindFirstParagraph(String)
Finds a paragraph that contains given text string.
FindFirstParagraph(String, Boolean)
Finds a paragraph that contains given text string, considering match-case.
FindFirstTable(String)
Finds a table that contains given text string.
FindFirstTable(String, Boolean)
Finds a table that contains given text string.
FindFirstTextrun(String)
Finds a textrun that contains given text string.
FindFirstTextrun(String, Boolean)
Finds a text-run that contains a certain text string.
Fonts
Defines the list of fonts used in this document.
Footnotes
List of footnotes.
GetAllImages()()()()
Get all images in this document.
HeaderTextboxes
List of header textboxes.
IsPasswordProtected
Defines if this document is password protected (so its content is not available).
ListArray
Defines the array of list types.
MergeDocuments(array<String>[]()[][])
Merges several documents with given file names.
MergeDocuments(array<Document>[]()[][])
Merges several documents.
Properties
Document properties.
ReadDOC(Stream)
Reads .doc stream into internal document structure.
ReadDOC(String)
Reads .doc file into internal document structure.
ReadDocument(Stream)
Reads document file (.doc, .docx, .rtf) into internal document structure.
ReadDocument(String)
Reads document file (.doc, .docx, .rtf) into internal document structure.
ReadDOCX(Stream)
Reads .docx stream into internal document structure.
ReadDOCX(String)
Reads .docx file into internal document structure.
ReadHTML(Stream)
Reads HTML-file from stream into internal document structure. Static property Document.BasePath is used to work with relative links. You can change it if you have issues with correct link working.
ReadHTML(String)
Reads HTML-file or HTML-string into internal document structure.
ReadHTML(Stream, Boolean)
Reads HTML-file from stream into internal document structure. Static property Document.BasePath is used to work with relative links. You can change it if you have issues with correct link working.
ReadHTML(String, Boolean)
Reads HTML-file from stream into internal document structure.
ReadRTF(Stream)
Reads .rtf file into internal document structure.
ReadRTF(String)
Reads .rtf file into internal document structure.
ReadTXT(Stream)
Reads text file from stream into internal document structure.
ReadTXT(String)
Reads text file into internal document structure.
RemoveLastSection()()()()
Removes last section.
SaveAllImages(String)
Saves all images in this document into files.
Sections
Sections of main document.
SetLicenseCode(String)
Checks the specified license code for authenticity.
StyleSheet
Defines the list of styles of this document.
Textboxes
List of textboxes.
WriteDOC()()()()
Writes the internal document structure into the stream and returns it.
WriteDOC(String)
Writes the internal document structure into .doc file.
WriteDocument(DocumentFormat)
Writes the internal document structure into the stream.
WriteDocument(String, DocumentFormat)
Writes the internal document structure to file on disk.
WriteDOCX()()()()
Writes the internal document structure into the DocX stream and returns it.
WriteDOCX(String)
Writes the internal document structure into .docx file.
WriteHTML()()()()
Writes result HTML-document to MemoryStream.
WriteHTML(String)
Writes document into HTML-file.
WriteHTML(String%)
Writes result HTML-document to string and returns it.
WriteRTF()()()()
Writes the internal document structure into the stream and returns it.
WriteRTF(String)
Writes the internal document structure into .rtf file.
WriteTXT(String)
Writes the internal document structure into text file (.txt).

Inheritance Hierarchy

System..::..Object
  Docs.Word..::..Document

See Also