Einhugur Word Component for Buoy |

# Document Class

Class that represents docx Word document.
This class can Create, Read, Write and Edit Word documents.

Container
Document

class Document

#### Constructors

Document | Private constructor.

#### Properties

CreatedDate | Creation date of the document. (Meta data)
Creator | Creator of the document. (Meta data)
DefaultSection | Returns default section for the document. (Default page setup for the document)
Description | Document description. (Meta data)
DocumentDefaults | Gets the document defaults object.
ItemCount (Inherited) | Number of items in the container.
Keywords | Keywords for the document. (Meta data)
LastModifiedBy | Name of person to last modify the document. (Meta data)
ModifiedDate | Last modification date of the document. (Meta data)
ParagraphCount (Inherited) | Returns number of paragraphs in the container.
Subject | Document subject. (Meta data)
TableCount (Inherited) | Returns number of tables in the container.
Title | Document title. (Meta data)

#### Methods

AddNewCharacterStyle | Adds new character style to the document.
AddNewParagraphStyle | Adds new paragraph style to the document.
AddNewTableStyle | Adds new table style to the document.
AppendPageBreak | Appends page break at back of the document.
AppendParagraph (Inherited) | Appends paragraph at back of the container, creating one run for the string passed in with this method.
AppendSectionBreak | Appends section break with a given rule.
AppendTable (Inherited) | Appends table to the back of the container.
ApplyFieldData | Applies filed data document wide. This covers paragraphs, tables, nested tables, nested paragraphs.
CharacterStyles | Returns array of all predefined CharacterStyles in the document.
shared Create | Creates new document at given location.
CreateListIndent | Creates ListIndent object to be used with group of paragraphs.
Footer | Gets footer of requested type from the document, optionally creating new footer if footer with the requested type does not exist.
GetBookmarks | Gets all bookmarks in the document.
Header | Gets header of requested type from the document, optionally creating new header if header with the requested type does not exist.
Item (Inherited) | Returns item at given index. (Paragraphs or tables)
shared Open | Opens word document.
Paragraph (Inherited) | Gets paragraph at given index.
ParagraphStyles | Returns array of all predefined ParagraphStyles in the document.
RemoveBookmark | Removes bookmark from the document.
RemoveItem (Inherited) | Removes item from the container.
Save | Saves the document.
SaveAs | Saves the document with new name and or path.
shared SetLicense | Sets license key for the component to take it out of demo mode.
Table (Inherited) | Gets table at given index.
TableStyles | Returns array of all predefined TableStyles in the document.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 64 bit
- Windows ARM 64 bit
- Linux 64 bit
- Linux ARM 64 bit