WPTableCell API

The WPTableCell class defines API properties that specify the text, alignment, column width, and row height of individual cells in a table. To get or set the alignment, borders, and cell spacing for the entire table, use the properties provided by the WPTable class. The methods and properties for WPTableCell are listed below.

void  setText(String text)
String  getText()
/* By default, table cells are aligned according to the paragraph style setting for the document. You can also assign a table cell a different paragraph style, using WPParagraphStyle properties, or set the alignment locally with the properties below. */
void  setAlignment(String align)  /* Set the vertical alignment of cell text to left, right, center, justify, or null. [[PS: What does null do?]] */
String  getAlignment()	  /* Returns the vertical alignment: left, right, center, justify, or null. [[PS: What does null do?]] */
void  setVAlign(String align)	/*  Set the vertical alignment of cell text to top, middle, or bottom. */
String  getVAlign()	/*  Returns the vertical alignment:  top, middle, or bottom. */
void  setColSpan(int size)
int  getColSpan()
void  setRowSpan(int size)
int  getRowSpan()

See also
WordProcessor API Index
WordProcessor Object Model
WordProcessor Home Page