The WPTable class defines API methods and properties that specify the appearance of a table and provide access to the cells it contains. To get or set the text and alignment of individual cells, use the properties provided by the WPTableCell class. The methods and properties for WPTable are listed below in the following categories:
void setTableWidth(int)
int getTableWidth()
void setBorderWidth(int) /* Specify 0 for no border. */
int getBorderWidth()
Enumerator enumerateCells()
WPTableCell findTableCell(String name)
WPTableCell findTableCell(int row, int column)
void setCellSpacing(int) /* Sets the amount of space between cells. */
int getCellSpacing() /* Gets the amount of space between cells. */
void setCellPadding(int) /* Set a margin inside the cells. [[PS: Is it a left margin?]] */
int getCellPadding() /* Get the internal margin for the cells. */
void setAlignment(String align) /* The valid values are left, right, or center. */
String getAlignment() /* Returns left, right, or center. */
void setVAlign(String align) /* The valid values are top, middle, or bottom. */
String getVAlign() /* Returns top, middle, or bottom. */
boolean insertRow(int beforeRow) /* Inserts a row above the row you specify. [[PS: Is this right?]] */
boolean insertColumn(int beforeColumn) /* Inserts a column to the left of the column you specify. [[PS: Is this right?]] */
boolean deleteRow(int row) /* Deletes the row you specify. */
boolean deleteColumn(int column) /* Deletes the column you specify. */
int getRowCount()
int getColumnCount()