TemplateTable

TemplateTable(TemplateTableLayout, string)

Initializes a new instance of the TemplateTable class with the UPPER CASE name.

public TemplateTable(TemplateTableLayout layout, string name)
Parameter Type Description
layout TemplateTableLayout The table layout.
name String The table name.

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


TemplateTable(TemplateTableLayout, string, double?)

Initializes a new instance of the TemplateTable class with the UPPER CASE name.

public TemplateTable(TemplateTableLayout layout, string name, double? pageWidth)
Parameter Type Description
layout TemplateTableLayout The table layout.
name String The table name.
pageWidth Nullable`1 The width of the page that was used to create the template item.

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


TemplateTable(TemplateTableLayout, string, double?, bool)

Initializes a new instance of the TemplateTable class.

public TemplateTable(TemplateTableLayout layout, string name, double? pageWidth, 
    bool useUpperCaseName)
Parameter Type Description
layout TemplateTableLayout The table layout.
name String The table name.
pageWidth Nullable`1 The width of the page that was used to create the template item.
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


TemplateTable(TemplateTableParameters, string)

Initializes a new instance of the TemplateTable class.

public TemplateTable(TemplateTableParameters parameters, string name)
Parameter Type Description
parameters TemplateTableParameters The parameters to detect the table in the automatic mode.
name String The table name.

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


TemplateTable(TemplateTableParameters, string, double?)

Initializes a new instance of the TemplateTable class.

public TemplateTable(TemplateTableParameters parameters, string name, double? pageWidth)
Parameter Type Description
parameters TemplateTableParameters The parameters to detect the table in the automatic mode.
name String The table name.
pageWidth Nullable`1 The width of the page that was used to create the template item.

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


TemplateTable(TemplateTableParameters, string, double?, bool)

Initializes a new instance of the TemplateTable class.

public TemplateTable(TemplateTableParameters parameters, string name, double? pageWidth, 
    bool useUpperCaseName)
Parameter Type Description
parameters TemplateTableParameters The parameters to detect the table in the automatic mode.
name String The table name.
pageWidth Nullable`1 The width of the page that was used to create the template item.
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