C# Класс TemplNET.Templ

Main class for producing Templ.NET documents
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ActiveModules List
Debugger TemplDebugger

Private Properties

Свойство Тип Описание
Templ System.Collections.Generic

Открытые методы

Метод Описание
Build ( object model, bool debug = TemplConst.Debug, HandleFailAction modelEntryFailAction = HandleFailAction.exception ) : Templ

Builds the document, using the provided model. ActiveModules are applied to the document in sequence. Enabling debug stores intermediate states after each module.

Load ( Stream stream, bool useDefaultModules = true ) : Templ

Initialises a document template, based on the supplied document data stream

Load ( TemplDoc document, bool useDefaultModules = true ) : Templ

Initialises a document template, based on the supplied document object

Load ( byte templateFile, bool useDefaultModules = true ) : Templ

Initialises a document template, based on the supplied document data

Load ( string templatePath, bool useDefaultModules = true ) : Templ

Initialises a document template, based on the supplied document file

SaveAs ( string fileName ) : Templ

Saves the document to file. Run Build first

Приватные методы

Метод Описание
Templ ( ) : System.Collections.Generic

Описание методов

Build() публичный Метод

Builds the document, using the provided model. ActiveModules are applied to the document in sequence. Enabling debug stores intermediate states after each module.
public Build ( object model, bool debug = TemplConst.Debug, HandleFailAction modelEntryFailAction = HandleFailAction.exception ) : Templ
model object
debug bool
modelEntryFailAction HandleFailAction
Результат Templ

Load() публичный статический Метод

Initialises a document template, based on the supplied document data stream
public static Load ( Stream stream, bool useDefaultModules = true ) : Templ
stream System.IO.Stream
useDefaultModules bool
Результат Templ

Load() публичный статический Метод

Initialises a document template, based on the supplied document object
public static Load ( TemplDoc document, bool useDefaultModules = true ) : Templ
document TemplDoc
useDefaultModules bool
Результат Templ

Load() публичный статический Метод

Initialises a document template, based on the supplied document data
public static Load ( byte templateFile, bool useDefaultModules = true ) : Templ
templateFile byte
useDefaultModules bool
Результат Templ

Load() публичный статический Метод

Initialises a document template, based on the supplied document file
public static Load ( string templatePath, bool useDefaultModules = true ) : Templ
templatePath string
useDefaultModules bool
Результат Templ

SaveAs() публичный Метод

Saves the document to file. Run Build first
public SaveAs ( string fileName ) : Templ
fileName string
Результат Templ

Описание свойств

ActiveModules публичное свойство

Active Modules (text, picture, table etc.). Applied to the document at Build time.
public List ActiveModules
Результат List

Debugger публичное свойство

Built-in debugger. Generates a .zip file of debug information at Build time.
public TemplDebugger,TemplNET Debugger
Результат TemplDebugger