com.spire.doc
Class TableRow

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.TableRow
All Implemented Interfaces:
ICompositeObject, IDocumentObject, IDocumentSerializable
Direct Known Subclasses:
StructureDocumentTagRow

public class TableRow
extends DocumentBase
implements ICompositeObject


Constructor Summary
TableRow(IDocument document)
          Initializes a new instance of the class.
 
Method Summary
 TableCell addCell()
          Adds the cell.
 TableCell addCell(boolean isCopyFormat)
          Adds the cell.
 TableRow deepClone()
          Clones this instance.
 CellCollection getCells()
          Returns or sets cell collection.
 DocumentObjectCollection getChildObjects()
          Gets the child object.
 DocumentObjectType getDocumentObjectType()
          Gets the type of the document object.
 float getHeight()
          Returns or setsheight of the row.
 TableRowHeightType getHeightType()
          Get / set table row height type
 RowFormat getRowFormat()
          Gets table format
 int getRowIndex()
          Returns index of the row in owner table.
 boolean isHeader()
          Returns or sets whether the row is a table header.
 void isHeader(boolean value)
          Returns or sets whether the row is a table header.
 void setCells(CellCollection value)
          Returns or sets cell collection.
 void setHeight(float value)
          Returns or setsheight of the row.
 void setHeightType(TableRowHeightType value)
          Get / set table row height type
 
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.IDocumentObject
getDocument, getNextSibling, getOwner, getPreviousSibling, isComposite
 

Constructor Detail

TableRow

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

Parameters:
document - The document.
Method Detail

getChildObjects

public DocumentObjectCollection getChildObjects()
Gets the child object.

Specified by:
getChildObjects in interface ICompositeObject
Specified by:
getChildObjects in class DocumentObject
Returns:
The child object.

getDocumentObjectType

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

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

getCells

public CellCollection getCells()
Returns or sets cell collection.


setCells

public void setCells(CellCollection value)
Returns or sets cell collection.


getHeightType

public TableRowHeightType getHeightType()
Get / set table row height type


setHeightType

public void setHeightType(TableRowHeightType value)
Get / set table row height type


getRowFormat

public RowFormat getRowFormat()
Gets table format


getHeight

public float getHeight()
Returns or setsheight of the row.


setHeight

public void setHeight(float value)
Returns or setsheight of the row.


isHeader

public boolean isHeader()
Returns or sets whether the row is a table header.


isHeader

public void isHeader(boolean value)
Returns or sets whether the row is a table header.


deepClone

public TableRow deepClone()
Clones this instance.

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

addCell

public TableCell addCell()
Adds the cell.


addCell

public TableCell addCell(boolean isCopyFormat)
Adds the cell.

Parameters:
isCopyFormat - Specifies whether to apply the parent row format.
Returns:

getRowIndex

public int getRowIndex()
Returns index of the row in owner table.

Returns: