com.spire.doc
Class TableCell

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.documents.xml.DocumentSerializable
          extended by com.spire.doc.DocumentObject
              extended by com.spire.doc.DocumentBase
                  extended by com.spire.doc.DocumentContainer
                      extended by com.spire.doc.Body
                          extended by com.spire.doc.TableCell
All Implemented Interfaces:
IBody, ICompositeObject, IDocumentObject, IDocumentSerializable
Direct Known Subclasses:
StructureDocumentTagCell

public class TableCell
extends Body
implements ICompositeObject


Constructor Summary
TableCell(IDocument document)
          Initializes a new instance of the class.
 
Method Summary
 DocumentObject deepClone()
          Clones this instance.
 CellFormat getCellFormat()
          Gets cell format.
 int getCellIndex()
          Get cell index in the table row.
 float getCellWidth()
          Gets the width of the cell.
 CellWidthType getCellWidthType()
          Gets the width type of the cell.
 DocumentObjectType getDocumentObjectType()
           Gets the type of the document object.
 short getGridSpan()
          Get or Set grid Span
 TableRow getOwnerRow()
          Gets owner row of the cell.
 float getScaling()
          Gets or sets the cell scaling.
 float getWidth()
          Deprecated. 
 void setCellWidth(float width, CellWidthType widthType)
          Set the width and type of the cell.
 void setCellWidthType(CellWidthType value)
          Deprecated. 
 void setScaling(float value)
          Gets or sets the cell scaling.
 void setWidth(float value)
          Deprecated. 
 void splitCell(int columnNum, int rowNum)
          The one cell splits into two or more cells.
 
Methods inherited from class com.spire.doc.Body
addParagraph, addTable, addTable, ensureMinimum, getChildObjects, getFirstParagraph, getFormFields, getLastParagraph, getParagraphs, getTables, insertXHTML, insertXHTML, insertXHTML, isValidXHTML, isValidXHTML
 
Methods inherited from class com.spire.doc.DocumentContainer
getCount, getIndex
 
Methods inherited from class com.spire.doc.DocumentObject
getFirstChild, getLastChild, getNextSibling, getNextWidgetSibling, getOwner, getPreviousSibling, getPreviousWidgetSibling, isComposite, prependChild, toString
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 
Methods inherited from interface com.spire.doc.interfaces.ICompositeObject
getChildObjects
 
Methods inherited from interface com.spire.doc.interfaces.IDocumentObject
getDocument, getNextSibling, getOwner, getPreviousSibling, isComposite
 

Constructor Detail

TableCell

public TableCell(IDocument document)
Initializes a new instance of the class.

Parameters:
document - The document.
Method Detail

getGridSpan

public short getGridSpan()
Get or Set grid Span


getDocumentObjectType

public DocumentObjectType getDocumentObjectType()
Gets the type of the document object.

Specified by:
getDocumentObjectType in interface IDocumentObject
Overrides:
getDocumentObjectType in class Body
Returns:
The type of the document object.

getOwnerRow

public TableRow getOwnerRow()
Gets owner row of the cell.


getCellFormat

public CellFormat getCellFormat()
Gets cell format.


getWidth

@Deprecated
public float getWidth()
Deprecated. 

Gets the width of the cell.


setWidth

@Deprecated
public void setWidth(float value)
Deprecated. 

Sets the width of the cell.


setCellWidthType

@Deprecated
public void setCellWidthType(CellWidthType value)
Deprecated. 

Gets the width type of the cell.


getScaling

public float getScaling()
Gets or sets the cell scaling.

Returns:
The scaling.

setScaling

public void setScaling(float value)
Gets or sets the cell scaling.


deepClone

public DocumentObject deepClone()
Clones this instance.

Specified by:
deepClone in interface IDocumentObject
Overrides:
deepClone in class DocumentObject
Returns:

getCellIndex

public int getCellIndex()
Get cell index in the table row.

Returns:

setCellWidth

public void setCellWidth(float width,
                         CellWidthType widthType)
Set the width and type of the cell.

Parameters:
width - Width of the cell.
widthType - Width type of the cell.

getCellWidth

public float getCellWidth()
Gets the width of the cell.

Returns:

getCellWidthType

public CellWidthType getCellWidthType()
Gets the width type of the cell.

Returns:

splitCell

public void splitCell(int columnNum,
                      int rowNum)
The one cell splits into two or more cells.

Parameters:
columnNum - The split column number. Must be greater than or equal to 1 is only valid.
rowNum - The split row number. Must be greater than or equal to 1 is only valid.