C# Class TemplNET.TemplModule

Represents a code module for the document build process
Afficher le fichier Open project: CPonty/templ-dot-net

Méthodes publiques

Свойство Type Description
CustomHandler Func
Name string
Regexes ISet
Statistics TemplModuleStatistics
Used bool

Méthodes publiques

Méthode Description
Build ( DocX doc, object model, HandleFailAction modelEntryFailAction ) : void

Applies all changes to the document. Templ.Build automatically executes it for all Templ.ActiveModules.

TemplModule ( string name, string prefix ) : System

Creates a code module for the document build process

Méthodes protégées

Méthode Description
AddPrefix ( string prefix ) : TemplModule

Given a prefix, add a placeholder to Regexes. These are used to find Matches in the document.

Method Details

AddPrefix() protected méthode

Given a prefix, add a placeholder to Regexes. These are used to find Matches in the document.
protected AddPrefix ( string prefix ) : TemplModule
prefix string
Résultat TemplModule

Build() public abstract méthode

Applies all changes to the document. Templ.Build automatically executes it for all Templ.ActiveModules.
public abstract Build ( DocX doc, object model, HandleFailAction modelEntryFailAction ) : void
doc Novacode.DocX
model object
modelEntryFailAction HandleFailAction
Résultat void

TemplModule() public méthode

Creates a code module for the document build process
public TemplModule ( string name, string prefix ) : System
name string Module name
prefix string Placeholder prefix when searching for matches
Résultat System

Property Details

CustomHandler public_oe property

An optional second handler function. Assignable per module instance at runtime.
public Func CustomHandler
Résultat Func

Name public_oe property

Module instance name. Used as an identifier in the debugger.
public string Name
Résultat string

Regexes public_oe property

The set of placeholder regexes used to find Matches in the document
public ISet Regexes
Résultat ISet

Statistics public_oe property

Named metadata values. Included in the Module meta-report when building in debug mode.
public TemplModuleStatistics,TemplNET Statistics
Résultat TemplModuleStatistics

Used public_oe property

Flag set if any Match instances were found during the Module's build process
public bool Used
Résultat bool