PRIM_PDF.AutoTableRow - addCell Method

Adds a cell to the table row

Member of PRIM_PDF.AutoTableRow (PRIM_PDF.AutoTableRow)

Parameters

Name

Type

Data Type

Description

Value

*Input

Unicode String

Cell value (content)

HAlign

*Input (Optional)

Enumeration

Horizontal alignment of text

VAlign

*Input (Optional)

Enumeration

Vertical alignment of text

FontStyle

*Input (Optional)

Enumeration

Font style or variant

FontName

*Input (Optional)

Unicode String

Font name or family

FontSize

*Input (Optional)

Integer

Font size in points

TextColor

*Input (Optional)

Color

Text color

FillColor

*Input (Optional)

Color

Background color

Details

Adds a cell to an AutoTable row.

Example

Add cells to AutoTable row

Define_Com Class(#PRIM_PDF.AutoTable) Name(#Table) Reference(*DYNAMIC) Theme(Striped) Columncount(3)
Define_Com Class(#PRIM_PDF.AutoTableRow) Name(#Row) Reference(*DYNAMIC)

* Create row
#Row <= #Table.CreateRow

* Add cells to row (must match table column count)
#Row.addCell Value(#xContactLastName)
#Row.addCell Value(#xContactFirstName) TextColor(Theme500) FillColor(Theme300)
#Row.addCell Value(#xContactMobilePhone) FontName('Courier') FontStyle(Italic)

* Add row to table
#Table.AddRow Row(#Row)

HAlign Allowed Values

Enum Value

Description

Left

Left aligned

Right

Right aligned

Center

Centered

VAlign Allowed Values

Enum Value

Description

Top

Top aligned

Middle

Middle aligned

Bottom

Bottom aligned

FontStyle Allowed Values

Enum Value

Description

Normal

Normal font style

Bold

Bold font style

Italic

Italisized font style

BoldItalic

Bold and italisized font style


See also

All Component Classes

Technical Reference

  • No labels