Template

Template class

Provides the document template. It consists of TemplateItem objects which represent the items of the template such as text field and table definitions.

public sealed class Template : IEnumerable<TemplateItem>

Constructors

Name Description
Template(IEnumerable<TemplateItem>) Initializes a new instance of the Template class.
Template(IEnumerable<TemplateItem>, TemplateOptions) Initializes a new instance of the Template class with template options.

Properties

Name Description
Count { get; } Gets the total number of template items.
Item { get; } Gets the template item by an index.
Options { get; } Gets the template options.

Methods

Name Description
static Load(Stream) Loads a template from a stream.
static Load(string) Loads a template from a file.
GetEnumerator() Returns an enumerator for template items.
Save(Stream) Saves a template to a stream.
Save(string) Saves a template to a file.

Remarks

Learn more:

See Also