TemplateTable Constructor (TemplateTableLayout, 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(
	TemplateTableLayout layout,
	string name,
	Nullable<int> pageIndex
)

Parameters

layout
Type: GroupDocs.Parser.TemplatesTemplateTableLayout
The table layout.
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

Template table is set by table layout if the table can't be detected automatically:

C#
TemplateTableLayout layout = new TemplateTableLayout(
    new double[] { 50, 95, 275 },
    new double[] { 325, 340, 365 });

TemplateTable table = new TemplateTable(layout, "Details", null);

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