rtLib — Notes Rich Text Management Library Documentation of rtLib — Notes Rich Text Management Library Download rtLib — Notes Rich Text Management Library FAQ of rtLib — Notes Rich Text Management Library Purchase rtLib — Notes Rich Text Management Library Feedback about rtLib — Notes Rich Text Management Library

Cookbook

Table - vertical alignment in cell

Start search Mail feedback Back to Description


rtTable rtCell

AlignVertical Cells Collection (rtContainer) Collection (rtEnumeration) Color (rtCell) Color (rtFontstyle) getFirstElement (rtCollection) getFirstElement (rtContainer) getNextElement (rtCollection) getNextElement (rtContainer) getRichTextItem NextElement tables

Code fragment from sample "Table - vertical alignment in cell"; see full running samples in downloadable help.
call ctxDump.getRichTextItem(doc,"Body")

dim
o as rtTable, c as rtCell
Set o = ctxDump.Tables.NextElement
set c = o.cells(1,3)

c.AlignVertical = CDTABLECELL_VALIGNBOTTOM
o.cells(1,2).AlignVertical = CDTABLECELL_VALIGNTOP ' valid parameters - CDTABLECELL_VALIGNTOP CDTABLECELL_VALIGNBOTTOM ' CDTABLECELL_VALIGNCENTER

Set coll = ctxDump.Collection (PARSE_GROUP_GRAPHIC) ' get rulers and paint 'em
coll.getFirstElement
coll.getNextElement.Color.setRGB 100,250,0