Document Class |
Namespace: SIC.OpenDocumentFormat.MSWord
The Document type exposes the following members.
Name | Description | |
---|---|---|
Document |
Initializes a new instance of the Document class.
Constructor without parameter
| |
Document(String) |
Constructor with parameter File name. If doesn't exist file then create a new file document
| |
Document(Byte, String) |
Constructor with parameter Byte array and save to File name
| |
Document(String, Boolean, Types) |
Constructor with parameter File name and Edit (editable) and Types | |
Document(Byte, String, Boolean, Types) |
Constructor with parameter Byte array, Edit (editable) and save to File name
|
Name | Description | |
---|---|---|
Bookmark |
Bookmark handling
| |
FileName |
Document filename include path. Set by constructor.
| |
GetContent |
Gives a byte array
| |
GetPageWidth |
Gives inner page width
| |
Header |
Header handling
| |
Image |
Image handling
| |
MyDocument |
Word document
| |
Type |
Gives document type to save. Set by constructor (method Open)
|
Name | Description | |
---|---|---|
AddDocument |
Add the body elements of parameter pDocument | |
AddElementAtParagraph |
Added a XML element at selection (add element at paragraph)
| |
AddMergeField |
Add a merge field at selection
| |
AddNewPage |
Add a page break to body
| |
AddParagraph |
Insert a paragraph at selection
| |
AddTable |
Append a table from a two-dimensional array (rows, columns)
| |
AddText(String) |
Add the text (parameter pText) to body
| |
AddText(OpenXmlElement, String, String, Boolean) |
Add the text at selection
| |
Close |
Close the Open Document Format file
| |
Create |
Create a new document file from a template
| |
Equals | (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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetPageBreakParagraph |
Gives a page break paragraph back
| |
GetParagraph |
Gives next of parent paragraph object. If not found then triggers an exception.
| |
GetSpace |
Gives a space text object
| |
GetSymbolCharCheckbox |
Gives checkbox symbol checked or unchecked
| |
GetSymbolCharCheckboxText |
Gives a Run object with check box symbol.
| |
GetTable |
Created a table object by parameters.
| |
GetText |
Gives inner element text from Open XML Element include sub child elements
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Open(String, Boolean, Types) |
Open a Open Document Format via file
| |
Open(Byte, String, Boolean, Types) |
Open a Open Document Format via stream
| |
Replace |
Replace text
| |
SetCustomProperty |
Write a custom document property
| |
SetLanguage |
Specifies the languages (be used to check spelling and grammar)
| |
SetMergeFile |
Sets merge file for document
| |
SetParagraphStyle |
Set paragraph style
| |
SetSpelling |
Display visual Indication of spelling errors
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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