C# Class TextTemplate.Template

Mostra file Open project: Invenietis/ck-certified Class Usage Examples

Public Methods

Method 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

Method 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 method

Return the well formated string with the user values
public GenerateFormatedString ( ) : string
return string

Load() public static method

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