Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
GetMD5HashFromStream ( Stream stream ) : string | ||
clonePackagePart ( |
||
clonePackageRelationship ( |
Méthode | Description | |
---|---|---|
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. |
Résultat | void |
public AddCustomProperty ( |
||
cp | The CustomProperty to add to this document. | |
Résultat | void |
public AddHyperlink ( string text, |
||
text | string | The text as displayed by the hyperlink. |
uri | The hyperlink itself. | |
Résultat | Novacode.Hyperlink |
public AddImage ( Stream stream ) : Image | ||
stream | Stream | A Stream stream. |
Résultat | Image |
public AddImage ( string filename ) : Image | ||
filename | string | The fully qualified or relative filename. |
Résultat | 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 |
Résultat | 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 |
Résultat | Novacode.List |
public AddProtection ( EditRestrictions er ) : void | ||
er | EditRestrictions | The type of protection to add to this document. |
Résultat | void |
public AddProtection ( EditRestrictions er, string strPassword ) : void | ||
er | EditRestrictions | |
strPassword | string | |
Résultat | void |
public AddTable ( int rowCount, int columnCount ) : |
||
rowCount | int | |
columnCount | int | |
Résultat |
public ApplyTemplate ( Stream templateStream ) : void | ||
templateStream | Stream | The stream of the document template file. |
Résultat | 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. |
Résultat | void |
public ApplyTemplate ( string templateFilePath ) : void | ||
templateFilePath | string | The path to the document template file. |
Résultat | 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. |
Résultat | void |
public static Create ( Stream stream, DocumentTypes documentType = DocumentTypes.Document ) : |
||
stream | Stream | The Stream to create the document from. |
documentType | DocumentTypes | |
Résultat |
public static Create ( string filename, DocumentTypes documentType = DocumentTypes.Document ) : |
||
filename | string | The fully qualified or relative filename. |
documentType | DocumentTypes | |
Résultat |
protected GetMD5HashFromStream ( Stream stream ) : string | ||
stream | Stream | |
Résultat | string |
public GetProtectionType ( ) : EditRestrictions | ||
Résultat | EditRestrictions |
public InsertChart ( Novacode.Chart chart ) : void | ||
chart | Novacode.Chart | |
Résultat | void |
public InsertChartAfterParagraph ( Novacode.Chart chart, |
||
chart | Novacode.Chart | |
paragraph | ||
Résultat | void |
public InsertDefaultTableOfContents ( ) : Novacode.TableOfContents | ||
Résultat | 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. |
Résultat | void |
public InsertEquation ( String equation ) : |
||
equation | String | |
Résultat |
public InsertList ( Novacode.List list ) : Novacode.List | ||
list | Novacode.List | The list to insert into the document. |
Résultat | Novacode.List |
public InsertList ( Novacode.List list, Font fontFamily, double fontSize ) : Novacode.List | ||
list | Novacode.List | |
fontFamily | Font | |
fontSize | double | |
Résultat | Novacode.List |
public InsertList ( Novacode.List list, double fontSize ) : Novacode.List | ||
list | Novacode.List | |
fontSize | double | |
Résultat | 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. |
Résultat | Novacode.List |
public InsertParagraph ( |
||
p | ||
Résultat |
public InsertParagraph ( int index, |
||
index | int | |
p | ||
Résultat |
public InsertParagraph ( int index, string text, bool trackChanges ) : |
||
index | int | |
text | string | |
trackChanges | bool | |
Résultat |
public InsertParagraph ( int index, string text, bool trackChanges, |
||
index | int | |
text | string | |
trackChanges | bool | |
formatting | ||
Résultat |
public InsertParagraph ( string text ) : |
||
text | string | |
Résultat |
public InsertParagraph ( string text, bool trackChanges ) : |
||
text | string | |
trackChanges | bool | |
Résultat |
public InsertParagraph ( string text, bool trackChanges, |
||
text | string | |
trackChanges | bool | |
formatting | ||
Résultat |
public InsertParagraphs ( string text ) : Novacode.Paragraph[] | ||
text | string | |
Résultat | Novacode.Paragraph[] |
public InsertTable ( |
||
t | The Table to insert. | |
Résultat |
public InsertTable ( int index, |
||
index | int | The index to insert this Table at. |
t | The Table to insert. | |
Résultat |
public InsertTable ( int rowCount, int columnCount ) : |
||
rowCount | int | The number of rows to create. |
columnCount | int | The number of columns to create. |
Résultat |
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. |
Résultat |
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 |
Résultat | 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 |
Résultat | Novacode.TableOfContents |
public static Load ( Stream stream ) : |
||
stream | Stream | The Stream to load the document from. |
Résultat |
public static Load ( string filename ) : |
||
filename | string | The fully qualified or relative filename. |
Résultat |
public SaveAs ( Stream stream ) : void | ||
stream | Stream | The Stream to save this document to. |
Résultat | void |
public SaveAs ( string filename ) : void | ||
filename | string | The filename to save this document as. |
Résultat | void |
public SetContent ( string>.Dictionary |
||
dict | string>.Dictionary | |
Résultat | void |
public SetContent ( System.Xml.Linq.XDocument xmlDoc ) : void | ||
xmlDoc | System.Xml.Linq.XDocument | |
Résultat | void |
public SetContent ( System.Xml.Linq.XElement el ) : void | ||
el | System.Xml.Linq.XElement | |
Résultat | void |
protected clonePackagePart ( |
||
pp | ||
Résultat |
protected clonePackageRelationship ( |
||
remote_document | ||
pp | ||
remote_mainDoc | System.Xml.Linq.XDocument | |
Résultat | void |