TemplateTable Constructor (TemplateTableParameters, String, NullableInt32)
Initializes a new instance of the TemplateTable class.

Namespace: GroupDocs.Parser.Templates
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 21.5.0
Syntax
public TemplateTable(
	TemplateTableParameters parameters,
	string name,
	Nullable<int> pageIndex
)

Parameters

parameters
Type: GroupDocs.Parser.TemplatesTemplateTableParameters
The parameters to detect the table in the automatic mode.
name
Type: SystemString
The table name.
pageIndex
Type: SystemNullableInt32
The index of the page where the template table is located; null if the template table is located on any page.
Examples

If a template table is set by detector parameters, the table is detected automatically:

C#
TemplateTableParameters parameters = new TemplateTableParameters(
    new Rectangle(new Point(175, 350), new Size(400, 200)),
    new double[] { 185, 370, 425, 485, 545 });

TemplateTable table = new TemplateTable(parameters, "Details", 0);

// Create a document template
Template template = new Template(new TemplateItem[] { table });
See Also