메소드 | 설명 | |
---|---|---|
AddCoreProperty ( string propertyName, string propertyValue ) : void |
Add a core property to this document. If a core property already exists with the same name it will be replaced. Core property names are case insensitive.
|
|
AddCustomProperty ( |
Add a custom property to this document. If a custom property already exists with the same name it will be replace. CustomProperty names are case insensitive.
|
|
AddFooters ( ) : void |
Adds three new Footers to this document. One for the first page, one for odd pages and one for even pages.
|
|
AddHeaders ( ) : void |
Adds three new Headers to this document. One for the first page, one for odd pages and one for even pages.
|
|
AddHyperlink ( string text, |
Adds a hyperlink to a document and creates a Paragraph which uses it.
|
|
AddImage ( Stream stream ) : Image |
Add an Image into this document from a Stream.
|
|
AddImage ( string filename ) : Image |
Add an Image into this document from a fully qualified or relative filename.
|
|
AddList ( string listText = null, int level, ListItemType listType = ListItemType.Numbered, int startNumber = null, bool trackChanges = false, bool continueNumbering = false ) : Novacode.List |
Create a new list with a list item.
|
|
AddListItem ( Novacode.List list, string listText, int level, ListItemType listType = ListItemType.Numbered, int startNumber = null, bool trackChanges = false, bool continueNumbering = false ) : Novacode.List |
Add a list item to an already existing list.
|
|
AddProtection ( EditRestrictions er ) : void |
Add editing protection to this document.
|
|
AddProtection ( EditRestrictions er, string strPassword ) : void | ||
AddTable ( int rowCount, int columnCount ) : |
||
ApplyTemplate ( Stream templateStream ) : void |
Applies document template to the document. Document template may include styles, headers, footers, properties, etc. as well as text content.
|
|
ApplyTemplate ( Stream templateStream, bool includeContent ) : void |
Applies document template to the document. Document template may include styles, headers, footers, properties, etc. as well as text content.
|
|
ApplyTemplate ( string templateFilePath ) : void |
Applies document template to the document. Document template may include styles, headers, footers, properties, etc. as well as text content.
|
|
ApplyTemplate ( string templateFilePath, bool includeContent ) : void |
Applies document template to the document. Document template may include styles, headers, footers, properties, etc. as well as text content.
|
|
Copy ( ) : |
Saves and copies the document into a new DocX object
|
|
Create ( Stream stream, DocumentTypes documentType = DocumentTypes.Document ) : |
Creates a document using a Stream.
|
|
Create ( string filename, DocumentTypes documentType = DocumentTypes.Document ) : |
Creates a document using a fully qualified or relative filename.
|
|
Dispose ( ) : void |
Releases all resources used by this document.
|
|
GetProtectionType ( ) : EditRestrictions |
Returns the type of editing protection imposed on this document.
|
|
GetSections ( ) : List |
||
InsertChart ( Novacode.Chart chart ) : void |
Insert a chart in document
|
|
InsertChartAfterParagraph ( Novacode.Chart chart, |
Insert a chart in document after paragraph
|
|
InsertDefaultTableOfContents ( ) : Novacode.TableOfContents |
Inserts a default TOC into the current document. Title: Table of contents Swithces will be: TOC \h \o '1-3' \u \z
|
|
InsertDocument ( |
Insert the contents of another document at the end of this document. If the document being inserted contains Images, CustomProperties and or custom styles, these will be correctly inserted into the new document. In the case of Images, new ID's are generated for the Images being inserted to avoid ID conflicts. CustomProperties with the same name will be ignored not replaced. |
|
InsertEquation ( String equation ) : |
Create an equation and insert it in the new paragraph
|
|
InsertList ( Novacode.List list ) : Novacode.List |
Insert list into the document.
|
|
InsertList ( Novacode.List list, Font fontFamily, double fontSize ) : Novacode.List | ||
InsertList ( Novacode.List list, double fontSize ) : Novacode.List | ||
InsertList ( int index, Novacode.List list ) : Novacode.List |
Insert a list at an index location in the document.
|
|
InsertParagraph ( ) : |
||
InsertParagraph ( |
||
InsertParagraph ( int index, |
||
InsertParagraph ( int index, string text, bool trackChanges ) : |
||
InsertParagraph ( int index, string text, bool trackChanges, |
||
InsertParagraph ( string text ) : |
||
InsertParagraph ( string text, bool trackChanges ) : |
||
InsertParagraph ( string text, bool trackChanges, |
||
InsertParagraphs ( string text ) : Novacode.Paragraph[] | ||
InsertTable ( |
Insert a Table into this document. The Table's source can be a completely different document.
|
|
InsertTable ( int index, |
Insert a Table into this document. The Table's source can be a completely different document.
|
|
InsertTable ( int rowCount, int columnCount ) : |
Insert a new Table at the end of this document.
|
|
InsertTable ( int index, int rowCount, int columnCount ) : |
Insert a new Table at the end of this document.
|
|
InsertTableOfContents ( |
Inserts at TOC into the current document before the provided reference
|
|
InsertTableOfContents ( string title, TableOfContentsSwitches switches, string headerStyle = null, int maxIncludeLevel = 3, int rightTabPos = null ) : Novacode.TableOfContents |
Inserts a TOC into the current document.
|
|
Load ( Stream stream ) : |
Loads a document into a DocX object using a Stream.
|
|
Load ( string filename ) : |
Loads a document into a DocX object using a fully qualified or relative filename.
|
|
RemoveProtection ( ) : void |
Remove editing protection from this document.
|
|
Save ( ) : void |
Save this document back to the location it was loaded from.
|
|
SaveAs ( Stream stream ) : void |
Save this document to a Stream.
|
|
SaveAs ( string filename ) : void |
Save this document to a file.
|
|
SetContent ( string>.Dictionary |
||
SetContent ( System.Xml.Linq.XDocument xmlDoc ) : void | ||
SetContent ( System.Xml.Linq.XElement el ) : void | ||
SetContent ( string path ) : void |
메소드 | 설명 | |
---|---|---|
GetMD5HashFromStream ( Stream stream ) : string | ||
clonePackagePart ( |
||
clonePackageRelationship ( |
메소드 | 설명 | |
---|---|---|
AddHeadersOrFooters ( bool b ) : void |
Adds a Header to a document. If the document already contains a Header it will be replaced.
|
|
AddHyperlinkStyleIfNotPresent ( ) : void | ||
AddImage ( object o, string contentType = "image/jpeg" ) : Image | ||
AddStylesForList ( ) : System.Xml.Linq.XDocument | ||
ComputeMD5HashString ( Stream stream ) : string | ||
DeleteHeadersOrFooters ( bool b ) : void | ||
DocX ( |
||
GetCollectiveText ( List |
||
GetFooterByType ( string type ) : |
||
GetHeaderByType ( string type ) : |
||
GetHeaderOrFooterByType ( string type, bool isHeader ) : object | ||
GetNextFreeRelationshipID ( ) : string | ||
PopulateDocument ( |
||
PostCreation ( |
||
PostLoad ( |
||
UpdateCorePropertyValue ( |
||
UpdateCustomPropertyValue ( |
Update the custom properties inside the document Different version of Word create different Document XML. |
|
concatByteArrays ( byte array1, byte array2 ) : byte[] | ||
getMarginAttribute ( System.Xml.Linq.XName name ) : float | ||
getMirrorMargins ( System.Xml.Linq.XName name ) : bool |
Mirror Margins boolean value. True when margins has to be mirrored.
|
|
merge_customs ( |
||
merge_endnotes ( |
||
merge_fonts ( |
||
merge_footnotes ( |
||
merge_images ( |
||
merge_numbering ( |
||
merge_styles ( |
||
setMarginAttribute ( System.Xml.Linq.XName xName, float value ) : void | ||
setMirrorMargins ( System.Xml.Linq.XName name, bool value ) : void |
public AddCoreProperty ( string propertyName, string propertyValue ) : void | ||
propertyName | string | The property name. |
propertyValue | string | The property value. |
리턴 | void |
public AddCustomProperty ( |
||
cp | The CustomProperty to add to this document. | |
리턴 | void |
public AddHyperlink ( string text, |
||
text | string | The text as displayed by the hyperlink. |
uri | The hyperlink itself. | |
리턴 | Novacode.Hyperlink |
public AddImage ( string filename ) : Image | ||
filename | string | The fully qualified or relative filename. |
리턴 | Image |
public AddList ( string listText = null, int level, ListItemType listType = ListItemType.Numbered, int startNumber = null, bool trackChanges = false, bool continueNumbering = false ) : Novacode.List | ||
listText | string | The text of the first element in the created list. |
level | int | The indentation level of the element in the list. |
listType | ListItemType | The type of list to be created: Bulleted or Numbered. |
startNumber | int | The number start number for the list. |
trackChanges | bool | Enable change tracking |
continueNumbering | bool | Set to true if you want to continue numbering from the previous numbered list |
리턴 | Novacode.List |
public AddListItem ( Novacode.List list, string listText, int level, ListItemType listType = ListItemType.Numbered, int startNumber = null, bool trackChanges = false, bool continueNumbering = false ) : Novacode.List | ||
list | Novacode.List | The list to add the new list item to. |
listText | string | The run text that should be in the new list item. |
level | int | The indentation level of the new list element. |
listType | ListItemType | Numbered or Bulleted list type. |
startNumber | int | The number start number for the list. |
trackChanges | bool | Enable change tracking |
continueNumbering | bool | Set to true if you want to continue numbering from the previous numbered list |
리턴 | Novacode.List |
public AddProtection ( EditRestrictions er ) : void | ||
er | EditRestrictions | The type of protection to add to this document. |
리턴 | void |
public AddProtection ( EditRestrictions er, string strPassword ) : void | ||
er | EditRestrictions | |
strPassword | string | |
리턴 | void |
public AddTable ( int rowCount, int columnCount ) : |
||
rowCount | int | |
columnCount | int | |
리턴 |
public ApplyTemplate ( Stream templateStream ) : void | ||
templateStream | Stream | The stream of the document template file. |
리턴 | void |
public ApplyTemplate ( Stream templateStream, bool includeContent ) : void | ||
templateStream | Stream | The stream of the document template file. |
includeContent | bool | Whether to copy the document template text content to document. |
리턴 | void |
public ApplyTemplate ( string templateFilePath ) : void | ||
templateFilePath | string | The path to the document template file. |
리턴 | void |
public ApplyTemplate ( string templateFilePath, bool includeContent ) : void | ||
templateFilePath | string | The path to the document template file. |
includeContent | bool | Whether to copy the document template text content to document. |
리턴 | void |
public static Create ( Stream stream, DocumentTypes documentType = DocumentTypes.Document ) : |
||
stream | Stream | The Stream to create the document from. |
documentType | DocumentTypes | |
리턴 |
public static Create ( string filename, DocumentTypes documentType = DocumentTypes.Document ) : |
||
filename | string | The fully qualified or relative filename. |
documentType | DocumentTypes | |
리턴 |
protected GetMD5HashFromStream ( Stream stream ) : string | ||
stream | Stream | |
리턴 | string |
public InsertChart ( Novacode.Chart chart ) : void | ||
chart | Novacode.Chart | |
리턴 | void |
public InsertChartAfterParagraph ( Novacode.Chart chart, |
||
chart | Novacode.Chart | |
paragraph | ||
리턴 | void |
public InsertDefaultTableOfContents ( ) : Novacode.TableOfContents | ||
리턴 | Novacode.TableOfContents |
public InsertDocument ( |
||
remote_document | The document to insert at the end of this document. | |
append | bool | If true, document is inserted at the end, otherwise document is inserted at the beginning. |
리턴 | void |
public InsertEquation ( String equation ) : |
||
equation | String | |
리턴 |
public InsertList ( Novacode.List list ) : Novacode.List | ||
list | Novacode.List | The list to insert into the document. |
리턴 | Novacode.List |
public InsertList ( Novacode.List list, Font fontFamily, double fontSize ) : Novacode.List | ||
list | Novacode.List | |
fontFamily | Font | |
fontSize | double | |
리턴 | Novacode.List |
public InsertList ( Novacode.List list, double fontSize ) : Novacode.List | ||
list | Novacode.List | |
fontSize | double | |
리턴 | Novacode.List |
public InsertList ( int index, Novacode.List list ) : Novacode.List | ||
index | int | Index in document to insert the list. |
list | Novacode.List | The list that was inserted into the document. |
리턴 | Novacode.List |
public InsertParagraph ( |
||
p | ||
리턴 |
public InsertParagraph ( int index, |
||
index | int | |
p | ||
리턴 |
public InsertParagraph ( int index, string text, bool trackChanges ) : |
||
index | int | |
text | string | |
trackChanges | bool | |
리턴 |
public InsertParagraph ( int index, string text, bool trackChanges, |
||
index | int | |
text | string | |
trackChanges | bool | |
formatting | ||
리턴 |
public InsertParagraph ( string text ) : |
||
text | string | |
리턴 |
public InsertParagraph ( string text, bool trackChanges ) : |
||
text | string | |
trackChanges | bool | |
리턴 |
public InsertParagraph ( string text, bool trackChanges, |
||
text | string | |
trackChanges | bool | |
formatting | ||
리턴 |
public InsertParagraphs ( string text ) : Novacode.Paragraph[] | ||
text | string | |
리턴 | Novacode.Paragraph[] |
public InsertTable ( int index, |
||
index | int | The index to insert this Table at. |
t | The Table to insert. | |
리턴 |
public InsertTable ( int rowCount, int columnCount ) : |
||
rowCount | int | The number of rows to create. |
columnCount | int | The number of columns to create. |
리턴 |
public InsertTable ( int index, int rowCount, int columnCount ) : |
||
index | int | The index to insert this Table at. |
rowCount | int | The number of rows to create. |
columnCount | int | The number of columns to create. |
리턴 |
public InsertTableOfContents ( |
||
reference | The paragraph to use as reference | |
title | string | The title of the TOC |
switches | TableOfContentsSwitches | Switches to be applied, see: http://officeopenxml.com/WPtableOfContents.php |
headerStyle | string | Lets you set the style name of the TOC header |
maxIncludeLevel | int | Lets you specify how many header levels should be included - default is 1-3 |
rightTabPos | int | Lets you override the right tab position - this is not common |
리턴 | Novacode.TableOfContents |
public InsertTableOfContents ( string title, TableOfContentsSwitches switches, string headerStyle = null, int maxIncludeLevel = 3, int rightTabPos = null ) : Novacode.TableOfContents | ||
title | string | The title of the TOC |
switches | TableOfContentsSwitches | Switches to be applied, see: http://officeopenxml.com/WPtableOfContents.php |
headerStyle | string | Lets you set the style name of the TOC header |
maxIncludeLevel | int | Lets you specify how many header levels should be included - default is 1-3 |
rightTabPos | int | Lets you override the right tab position - this is not common |
리턴 | Novacode.TableOfContents |
public static Load ( Stream stream ) : |
||
stream | Stream | The Stream to load the document from. |
리턴 |
public static Load ( string filename ) : |
||
filename | string | The fully qualified or relative filename. |
리턴 |
public SaveAs ( Stream stream ) : void | ||
stream | Stream | The Stream to save this document to. |
리턴 | void |
public SaveAs ( string filename ) : void | ||
filename | string | The filename to save this document as. |
리턴 | void |
public SetContent ( string>.Dictionary |
||
dict | string>.Dictionary | |
리턴 | void |
public SetContent ( System.Xml.Linq.XDocument xmlDoc ) : void | ||
xmlDoc | System.Xml.Linq.XDocument | |
리턴 | void |
public SetContent ( System.Xml.Linq.XElement el ) : void | ||
el | System.Xml.Linq.XElement | |
리턴 | void |
protected clonePackagePart ( |
||
pp | ||
리턴 |
protected clonePackageRelationship ( |
||
remote_document | ||
pp | ||
remote_mainDoc | System.Xml.Linq.XDocument | |
리턴 | void |