Click or drag to resize

Template Methods

The Template type exposes the following members.

Methods
 NameDescription
Public methodAddKey Adds a custom key used by this template.
Public methodClearDataSources Clears all data sources for this template.
Public methodStatic memberCreate Creates new template using specified template text.
Public methodDataFrom(IDictionary) Specifies IDictionary that will be used as a data source for this template. If the method is called more than once, only last object is used as the template data source.
Public methodDataFrom(ITemplateDataProvider) Specifies ITemplateDataProvider that will be used as a data source for this template. If the method is called more than once, only last object is used as the template data source.
Public methodDataFrom(Object) Specifies object that will be used as a data source for this template. If the method is called more than once, only last object is used.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromFile Loads a template from file.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPermanentDataFrom(IDictionary) Specifies IDictionary that will be used as a data source for this template. If the method is called more than once, all objects are checked and used as the template data source.
Public methodPermanentDataFrom(ITemplateDataProvider) Specifies ITemplateDataProvider that will be used as a data source for this template. If the method is called more than once, all objects are checked and used as the template data source.
Public methodPermanentDataFrom(Object) Specifies object that will be used as a data source for this template. If the method is called more than once, all objects are used.
Public methodRender Renders the template.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also