C# Class TextTemplate.Template

Afficher le fichier Open project: Invenietis/ck-certified Class Usage Examples

Méthodes publiques

Méthode Description
GenerateFormatedString ( ) : string

Return the well formated string with the user values

Load ( string tmpl, TextTemplate tt ) : Template

Return a new Template from the given string

Private Methods

Méthode Description
IndexOfNewLine ( string str ) : int
ParseStaticText ( string staticText, List textFragments, TextTemplate tt ) : void

Parse the given static text and split it on spaces and new lines

SplitNewlines ( List textFragments, string staticText, TextTemplate tt ) : void

Parse the given static text and split it on new lines

Method Details

GenerateFormatedString() public méthode

Return the well formated string with the user values
public GenerateFormatedString ( ) : string
Résultat string

Load() public static méthode

Return a new Template from the given string
public static Load ( string tmpl, TextTemplate tt ) : Template
tmpl string
tt TextTemplate
Résultat Template