C# Class Examples.Program

Exibir arquivo Open project: WordDocX/DocX

Public Methods

Method Description
DocumentHeading ( ) : void

Private Methods

Method Description
AddList ( ) : void
AddToc ( ) : void
AddTocByReference ( ) : void
BarChart ( ) : void
Bookmarks ( ) : void
BookmarksReplaceTextOfBookmarkKeepingFormat ( ) : void

Loads a document 'DocumentWithBookmarks.docx' and changes text inside bookmark keeping formatting the same. This code creates the file 'BookmarksReplaceTextOfBookmarkKeepingFormat.docx'.

Chart3D ( ) : void
Contents ( ) : void

Load a document and set content controls.

CreateAndInsertInvoiceTableAfter ( Table t, DocX &document ) : Table
CreateInvoice ( ) : void
CreateInvoiceFromTemplate ( DocX template ) : DocX
CreateInvoiceTemplate ( ) : DocX
CreateTableRowsFromTemplate ( ) : void

Loads a document having a table with a given line as template. It avoids extra manipulation regarding style

CreateTableWithTextDirection ( ) : void
DocumentMargins ( ) : void
DocumentsWithListsFontChange ( ) : void
Equations ( ) : void

Create a document wit(h two equations.

Examples ( ) : void
GetDataFromDatabase ( ) : DataTable
HeadersAndFooters ( ) : void
HeadersAndFootersWithImagesAndTables ( ) : void
HeadersAndFootersWithImagesAndTablesUsingInsertPicture ( ) : void
HelloWorld ( ) : void

Creates a simple document with the text Hello World.

HelloWorldAddPictureToWord ( ) : void

Create a document with two pictures. One picture is inserted normal way, the other one with rotation

HelloWorldAdvancedFormatting ( ) : void
HelloWorldInsertHorizontalLine ( ) : void
HelloWorldKeepLinesTogether ( ) : void
HelloWorldKeepWithNext ( ) : void
HelloWorldProtectedDocument ( ) : void
HyperlinksImagesTables ( ) : void

Creates a document with a Hyperlink, an Image and a Table.

HyperlinksImagesTablesWithLists ( ) : void
Indentation ( ) : void

Create a document with a Paragraph whos first line is indented.

LargeTable ( ) : void
LineChart ( ) : void
Main ( string args ) : void
PieChart ( ) : void
ProgrammaticallyManipulateImbeddedImage ( ) : void

Loads a document 'Input.docx' and writes the text 'Hello World' into the first imbedded Image. This code creates the file 'Output.docx'.

ReplaceTextParallel ( ) : void

For each of the documents in the folder 'docs\', Replace the string a with the string b, Do this in Parrallel accross many CPU cores.

RightToLeft ( ) : void

Create a document that with RightToLeft text flow.

Setup ( ) : void
TableWithSpecifiedWidths ( ) : void

Method Details

DocumentHeading() public static method

public static DocumentHeading ( ) : void
return void