Template Constructor
Initializes a new instance of the Template class.

Namespace: GroupDocs.Parser.Templates
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 21.5.0
Syntax
public Template(
	IEnumerable<TemplateItem> items
)

Parameters

items
Type: System.Collections.GenericIEnumerableTemplateItem
The collection of TemplateItem objects.
Examples

Usage:

C#
// Create an array of template fields
TemplateItem[] fields = new TemplateItem[]
{
   new TemplateField(new TemplateRegexPosition("From"), "From", 0),
   new TemplateField(
       new TemplateLinkedPosition("From", new Size(100, 10), new TemplateLinkedPositionEdges(false, false, false, true)),
       "FromCompany",
       0),
   new TemplateField(
       new TemplateLinkedPosition("FromCompany", new Size(100, 30), new TemplateLinkedPositionEdges(false, false, false, true)),
       "FromAddress",
       0)
};

// Create a document template
Template template = new Template(fields);
See Also