rtfTableAddRow

DESCRIPTION:

Creates the RTF tags to add a row to the given RTF file.

USAGE:

rtfTableAddRow(tableInit, coltexts = rep(" ", tableInit$numCols), rtfFile, 
        colSpan = 0, rowjust = "", rowtop = "", rowbot = "", rowleft = "", 
        rowright = "", cellAlign = rep("\\qc", length(coltexts)), 
        style = TableText10Style, writeText = T, 
        cellBorder = rep(list(rep(NOCELLBORDER, 4)), tableInit$numCols), 
        cellShading=rep("", tableInit$numCols))

ARGUMENTS:

tableInit
List with information about the table produced by rtfTableInit (no default).
coltexts
Vector of text values for the table row (default=rep(" ", tableInit$numCols)).
rtfFile
rtfFile to write the output to if writeText=T.
colSpan
Numeric vector specifying the number of columns that each column spans. For example, c(2,3) would imply 5 columns in the table with the current row merging the first two cells together and the last three cells together. A value of 0 uses all columns as specificed in tableInit. (default=0)rowjust - set the row justification; to center the table use "\\trqc" (default="").
rowjust
set the row justification; to center the table use "\\trqc" (default="")
rowtop
Border for the top of the row (default="").
rowbot
Border for the bottom of the row (default="").
rowleft
Border for the left of the row (default="").
rowright
Border for the right of the row (default="").
cellAlign
text alignment in cells; use left-\\ql, right-\\qr, center-\\qc (default=rep("\\qc", length(coltexts)))
style
style to use on the text in the table (default=TableText10Style)writeText - T/F determining whether RTF text for row should be written to the given file or not or if the string should just be returned
writeText
T/F determining whether RTF text for row should be written to the given file or not or if the string should just be returned
cellBorder
used when need different border on each cell; values are overriden by rowxxx parameters; list of vectors for each cell going clockwise in the following order - c(left,top,right,bottom); the values should be the RTF text to be used for each border and contain one entry for each cell; predefined border values are NOCELLOBORDER, SOLIDCELLBORDER, THICKCELLBORDER and DASHCELLBORDER (default=rep(list(rep(NOCELLBORDER,4)), tableInit$numCols))
cellShading
Used when need different background shading in each cell. Cell shading is based on the colors in the color table. (default=rep("", tableInit$numCols)) - no shading
cellvertAlign
vertical aligment of text in cell, t-top, c-centered, b-bottom, (default is top)
vertMerge
vertical merging of cells. Use "\\clvmgf" for first cell in merged group and then "\\clvmrg" for all the cells to merge; then "\\clvmgf" for the first cell in the merged group, etc. (default is ""(none))

VALUE:

A string containing the RTF that will create this row as specified;

NOTE:

If writeText=T, the return string can be ignored, otherwise the calling function will need to write the string to the RTF file.

AUTHOR(S):

TIBCO Software Inc.

SEE ALSO: