Cell
Overview
Cell is a class in Aspose.Words FOSS for Java.
Inherits from: CompositeNode<Node>, ICellAttrSource, ITrackableNode.
Represents a table cell.
Edition status of its 27 listed members (a property and its accessor methods are listed separately, overloads once): 27 not yet exercised by a verified example.
This class declares 16 methods for Cell objects in Java programs.
Available methods include: Cell, accept, acceptEnd, acceptStart, ensureMinimum, getCellFormat, getFirstParagraph, getLastParagraph, getNextCell, getNodeType, getParagraphs, getParentRow, and 4 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: cellFormat, firstCell, firstParagraph, lastCell, lastParagraph, nextCell, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
nodeType | int | Read | Returns Cell. |
nextCell | Cell | Read | Gets the next Cell node. |
previousCell | Cell | Read | Gets the previous Cell node. |
parentRow | Row | Read | Returns the parent row of the cell. |
firstParagraph | Paragraph | Read | Gets the first paragraph among the immediate children. |
lastParagraph | Paragraph | Read | Gets the last paragraph among the immediate children. |
firstCell | boolean | Read | True if this is the first cell inside a row; false otherwise. |
lastCell | boolean | Read | True if this is the last cell inside a row; false otherwise. |
cellFormat | CellFormat | Read | Provides access to the formatting properties of the cell. |
paragraphs | ParagraphCollection | Read | Gets a collection of paragraphs that are immediate children of the cell. |
tables | TableCollection | Read | Gets a collection of tables that are immediate children of the cell. |
Methods
| Signature | Description |
|---|---|
Cell(doc: DocumentBase) | Initializes a new instance of the Cell class. |
getNodeType() → int | Returns Cell. |
getNextCell() → Cell | Gets the next Cell node. |
getPreviousCell() → Cell | Gets the previous Cell node. |
getParentRow() → Row | Returns the parent row of the cell. |
getFirstParagraph() → Paragraph | Gets the first paragraph among the immediate children. |
getLastParagraph() → Paragraph | Gets the last paragraph among the immediate children. |
isFirstCell() → boolean | True if this is the first cell inside a row; false otherwise. |
isLastCell() → boolean | True if this is the last cell inside a row; false otherwise. |
getCellFormat() → CellFormat | Provides access to the formatting properties of the cell. |
getParagraphs() → ParagraphCollection | Gets a collection of paragraphs that are immediate children of the cell. |
getTables() → TableCollection | Gets a collection of tables that are immediate children of the cell. |
accept(visitor: DocumentVisitor) → boolean | Calls accept(visitor) on this Cell instance. |
acceptStart(visitor: DocumentVisitor) → int | Accepts a visitor for visiting the start of the cell. |
acceptEnd(visitor: DocumentVisitor) → int | Accepts a visitor for visiting the end of the cell. |
ensureMinimum() | If the last child is not a paragraph, creates and appends one empty paragraph. |