PRIM_PDF.AutoTableRow - addCell Method

Adds a cell to the table row

Member of PRIM_PDF.AutoTableRow (PRIM_PDF.AutoTableRow)

Parameters

NameTypeData TypeDescription
Value*InputUnicode StringCell value (content)
HAlign*Input (Optional)EnumerationHorizontal alignment of text
VAlign*Input (Optional)EnumerationVertical alignment of text
FontStyle*Input (Optional)EnumerationFont style or variant
FontName*Input (Optional)Unicode StringFont name or family
FontSize*Input (Optional)IntegerFont size in points
TextColor*Input (Optional)ColorText color
FillColor*Input (Optional)ColorBackground 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 ValueDescription
LeftLeft aligned
RightRight aligned
CenterCentered

VAlign Allowed Values

Enum ValueDescription
TopTop aligned
MiddleMiddle aligned
BottomBottom aligned

FontStyle Allowed Values

Enum ValueDescription
NormalNormal font style
BoldBold font style
ItalicItalisized font style
BoldItalicBold and italisized font style


 
 

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020