Click or drag to resize

Document Class

Office document of type DOC handling
Inheritance Hierarchy
SystemObject
  SIC.OpenDocumentFormat.MSWordDocument

Namespace:  SIC.OpenDocumentFormat.MSWord
Assembly:  SIC.OpenDocumentFormat (in SIC.OpenDocumentFormat.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public class Document

The Document type exposes the following members.

Constructors
  NameDescription
Public methodDocument
Initializes a new instance of the Document class. Constructor without parameter
Public methodDocument(String)
Constructor with parameter File name. If doesn't exist file then create a new file document
Public methodDocument(Byte, String)
Constructor with parameter Byte array and save to File name
Public methodDocument(String, Boolean, Types)
Constructor with parameter File name and Edit (editable) and Types
Public methodDocument(Byte, String, Boolean, Types)
Constructor with parameter Byte array, Edit (editable) and save to File name
Top
Properties
  NameDescription
Public propertyBookmark
Bookmark handling
Public propertyFileName
Document filename include path. Set by constructor.
Public propertyGetContent
Gives a byte array
Protected propertyGetPageWidth
Gives inner page width
Public propertyHeader
Header handling
Public propertyImage
Image handling
Public propertyMyDocument
Word document
Public propertyType
Gives document type to save. Set by constructor (method Open)
Top
Methods
  NameDescription
Public methodAddDocument
Add the body elements of parameter pDocument
Protected methodAddElementAtParagraph
Added a XML element at selection (add element at paragraph)
Protected methodAddMergeField
Add a merge field at selection
Public methodAddNewPage
Add a page break to body
Protected methodAddParagraph
Insert a paragraph at selection
Public methodAddTable
Append a table from a two-dimensional array (rows, columns)
Public methodAddText(String)
Add the text (parameter pText) to body
Protected methodAddText(OpenXmlElement, String, String, Boolean)
Add the text at selection
Public methodClose
Close the Open Document Format file
Public methodCode exampleCreate
Create a new document file from a template
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetPageBreakParagraph
Gives a page break paragraph back
Protected methodGetParagraph
Gives next of parent paragraph object. If not found then triggers an exception.
Protected methodGetSpace
Gives a space text object
Protected methodGetSymbolCharCheckbox
Gives checkbox symbol checked or unchecked
Protected methodGetSymbolCharCheckboxText
Gives a Run object with check box symbol.
Protected methodGetTable
Created a table object by parameters.
Protected methodGetText
Gives inner element text from Open XML Element include sub child elements
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Private methodOpen(String, Boolean, Types)
Open a Open Document Format via file
Private methodOpen(Byte, String, Boolean, Types)
Open a Open Document Format via stream
Public methodReplace
Replace text
Public methodSetCustomProperty
Write a custom document property
Public methodSetLanguage
Specifies the languages (be used to check spelling and grammar)
Public methodSetMergeFile
Sets merge file for document
Protected methodSetParagraphStyle
Set paragraph style
Public methodSetSpelling
Display visual Indication of spelling errors
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Note: using DocumentFormat.OpenXml.Packaging and DocumentFormat.OpenXml.Wordprocessing:

class with full namespace path not declaration in region Using because class name collide with SIC names

See Also