com.acesoft.aceoffix.wordwriter
Class Cell

java.lang.Object
  extended by com.acesoft.aceoffix.wordwriter.Cell

public class Cell
extends java.lang.Object

Representing the cell object defined in Microsoft Word, Cell class is used to fill data into cells and control behavior of the cells.

You can call the Table.openCellRC method to get the Cell object.

Version:
5.0
Author:
Acesoft Corporation

Method Summary
 Border getBorder()
          Gets a border object.
 Font getFont()
          Gets a font object.
 ParagraphFormat getParagraphFormat()
          Gets a paragraph format object.
 Shading getShading()
          Gets a Shading object.
 void mergeTo(int row, int col)
          Merge the specified cells to target cell in the worksheet.
 void setValue(java.lang.String value)
          Sets the value of the cell.
 void setVerticalAlignment(WdCellVerticalAlignment value)
          Sets the vertical alignment of text in cell.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setValue

public void setValue(java.lang.String value)
              throws java.lang.Exception,
                     java.io.IOException
Sets the value of the cell.

Throws:
java.lang.Exception
java.io.IOException
See Also:
DataRegion.openTable() to learn how to set the value of the cell.

getFont

public Font getFont()
Gets a font object.

Returns:
The font object defined in Microsoft Word.

getParagraphFormat

public ParagraphFormat getParagraphFormat()
Gets a paragraph format object.

Returns:
The paragraph format object defined in Microsoft Word.

getShading

public Shading getShading()
Gets a Shading object.

Returns:
The Shading object defined in Microsoft Word.

getBorder

public Border getBorder()
                 throws java.io.IOException
Gets a border object.

Returns:
The border object defined in Microsoft Word.
Throws:
java.io.IOException

setVerticalAlignment

public void setVerticalAlignment(WdCellVerticalAlignment value)
                          throws java.io.IOException
Sets the vertical alignment of text in cell.

Throws:
java.io.IOException

mergeTo

public void mergeTo(int row,
                    int col)
Merge the specified cells to target cell in the worksheet.

Parameters:
row - The row number of the target cell.
col - The column number of the target cell.