TemplateTable
TemplateTable(TemplateTableLayout, string, int?)
Initializes a new instance of the TemplateTable
class with the UPPER CASE name.
public TemplateTable(TemplateTableLayout layout, string name, int? pageIndex)
Parameter | Type | Description |
---|---|---|
layout | TemplateTableLayout | The table layout. |
name | String | The table name. |
pageIndex | Nullable`1 | 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:
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
- class TemplateTableLayout
- class TemplateTable
- namespace GroupDocs.Parser.Templates
- assembly GroupDocs.Parser
TemplateTable(TemplateTableLayout, string, int?, bool)
Initializes a new instance of the TemplateTable
class.
public TemplateTable(TemplateTableLayout layout, string name, int? pageIndex, bool useUpperCaseName)
Parameter | Type | Description |
---|---|---|
layout | TemplateTableLayout | The table layout. |
name | String | The table name. |
pageIndex | Nullable`1 | The index of the page where the template table is located; null if the template table is located on any page. |
useUpperCaseName | Boolean | The value that indicates whether a name is converted to UPPER CASE. |
Examples
Template table is set by table layout if the table can’t be detected automatically:
TemplateTableLayout layout = new TemplateTableLayout(
new double[] { 50, 95, 275 },
new double[] { 325, 340, 365 });
TemplateTable table = new TemplateTable(layout, "Details", null, false);
// Create a document template
Template template = new Template(new TemplateItem[] { table });
See Also
- class TemplateTableLayout
- class TemplateTable
- namespace GroupDocs.Parser.Templates
- assembly GroupDocs.Parser
TemplateTable(TemplateTableParameters, string, int?)
Initializes a new instance of the TemplateTable
class.
public TemplateTable(TemplateTableParameters parameters, string name, int? pageIndex)
Parameter | Type | Description |
---|---|---|
parameters | TemplateTableParameters | The parameters to detect the table in the automatic mode. |
name | String | The table name. |
pageIndex | Nullable`1 | 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:
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
- class TemplateTableParameters
- class TemplateTable
- namespace GroupDocs.Parser.Templates
- assembly GroupDocs.Parser
TemplateTable(TemplateTableParameters, string, int?, bool)
Initializes a new instance of the TemplateTable
class.
public TemplateTable(TemplateTableParameters parameters, string name, int? pageIndex,
bool useUpperCaseName)
Parameter | Type | Description |
---|---|---|
parameters | TemplateTableParameters | The parameters to detect the table in the automatic mode. |
name | String | The table name. |
pageIndex | Nullable`1 | The index of the page where the template table is located; null if the template table is located on any page. |
useUpperCaseName | Boolean | The value that indicates whether a name is converted to UPPER CASE. |
Examples
If a template table is set by detector parameters, the table is detected automatically:
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, false);
// Create a document template
Template template = new Template(new TemplateItem[] { table });
See Also
- class TemplateTableParameters
- class TemplateTable
- namespace GroupDocs.Parser.Templates
- assembly GroupDocs.Parser