C# Class TemplateEngine.Docx.TemplateProcessor

Inheritance: IDisposable
Datei anzeigen Open project: UNIT6-open/TemplateEngine.Docx Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FillContent ( Content content ) : TemplateProcessor
SaveChanges ( ) : void
SetNoticeAboutErrors ( bool isNeedToNotice ) : TemplateProcessor
SetRemoveContentControls ( bool isNeedToRemove ) : TemplateProcessor
TemplateProcessor ( Stream stream ) : System
TemplateProcessor ( System.Xml.Linq.XDocument templateSource, System.Xml.Linq.XDocument stylesPart = null, System.Xml.Linq.XDocument numberingPart = null ) : System
TemplateProcessor ( string fileName ) : System

Private Methods

Method Description
AddErrors ( IList errors ) : void

Adds a list of errors as red text on yellow at the beginning of the document.

TemplateProcessor ( WordprocessingDocument wordDocument ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FillContent() public method

public FillContent ( Content content ) : TemplateProcessor
content Content
return TemplateProcessor

SaveChanges() public method

public SaveChanges ( ) : void
return void

SetNoticeAboutErrors() public method

public SetNoticeAboutErrors ( bool isNeedToNotice ) : TemplateProcessor
isNeedToNotice bool
return TemplateProcessor

SetRemoveContentControls() public method

public SetRemoveContentControls ( bool isNeedToRemove ) : TemplateProcessor
isNeedToRemove bool
return TemplateProcessor

TemplateProcessor() public method

public TemplateProcessor ( Stream stream ) : System
stream Stream
return System

TemplateProcessor() public method

public TemplateProcessor ( System.Xml.Linq.XDocument templateSource, System.Xml.Linq.XDocument stylesPart = null, System.Xml.Linq.XDocument numberingPart = null ) : System
templateSource System.Xml.Linq.XDocument
stylesPart System.Xml.Linq.XDocument
numberingPart System.Xml.Linq.XDocument
return System

TemplateProcessor() public method

public TemplateProcessor ( string fileName ) : System
fileName string
return System