|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.acesoft.aceoffix.wordwriter.Table
public class Table
Table class represents the table object defined in Word.
You can only call the DataRegion.openTable method to get the Table object.
Method Summary | |
---|---|
Border |
getBorder()
Gets the border object. |
int |
getIndex()
Gets the index of the table. |
void |
insertRowAfter(Cell cell)
Inserts new rows below the row with the specified cell. |
Cell |
openCellRC(int row,
int col)
Opens the specified cell and returns a Cell object. |
Column |
openColumn(int index)
Opens the specified column and returns a column object. |
Row |
openRow(int index)
Opens the specified row and returns a row object. |
void |
removeRowAt(Cell cell)
Removes the row with the specified cell. |
void |
setPreferredWidth(float value)
Sets the width of the table. |
void |
setPreferredWidthType(WdPreferredWidthType value)
The preferred width type used to set width. |
void |
setRowsHeight(float rowHeight)
Sets the height of all rows in the Table. |
void |
setRowsHeight(float rowHeight,
WdRowHeightRule heightRule)
Sets the height of all rows in the Table. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getIndex()
The Index is the index of the table defined in Microsoft Word. The index number indicates position of the table in the Word document.
The Index is a 1-based index.
public Border getBorder() throws java.io.IOException
java.io.IOException
public void setPreferredWidthType(WdPreferredWidthType value)
public void setPreferredWidth(float value)
public Cell openCellRC(int row, int col)
row
- The row number. Starting from "1".col
- The column number. Starting from "1".
DataRegion.openTable() to learn how to use the OpenCellRC method.
public void insertRowAfter(Cell cell) throws java.lang.Exception
cell
- Once the cell object goes out of the scope of the Table, insertion will fail silently.
java.lang.Exception
public Column openColumn(int index)
index
- The index of the column is the same with the index defined in Microsoft Word. Both of them start form "1".
public Row openRow(int index)
index
- The index of the row is the same with the index defined in Microsoft Word. Both of them start form "1".
public void setRowsHeight(float rowHeight, WdRowHeightRule heightRule)
rowHeight
- The row height, in points.heightRule
- Height rule used to determine the height of the specified rows.public void setRowsHeight(float rowHeight)
rowHeight
- The row height, in points.public void removeRowAt(Cell cell) throws java.lang.Exception
cell
- Once the cell object goes out of the scope of the Table, insertion will fail silently.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |