Row
Overview
Row is a class in Aspose.Words FOSS for Java.
Inherits from: CompositeNode<Cell>, IRowAttrSource, ITrackableNode.
Represents a table row.
Edition status of its 30 listed members (a property and its accessor methods are listed separately, overloads once): 30 not yet exercised by a verified example.
This class declares 18 methods for Row objects in Java programs.
Available methods include: Row, accept, acceptEnd, acceptStart, ensureMinimum, getCells, getFirstCell, getHidden, getLastCell, getNextRow, getNodeType, getParentTable, and 6 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: cells, firstCell, firstRow, hidden, lastCell, lastRow, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
nodeType | int | Read | Returns Row. |
parentTable | Table | Read | Returns the immediate parent table of the row. |
firstRow | boolean | Read | True if this is the first row in a table; false otherwise. |
lastRow | boolean | Read | True if this is the last row in a table; false otherwise. |
nextRow | Row | Read | Gets the next Row node. |
previousRow | Row | Read | Gets the previous Row node. |
firstCell | Cell | Read | Returns the first Cell in the row. |
lastCell | Cell | Read | Returns the last Cell in the row. |
cells | CellCollection | Read | Provides typed access to the Cell child nodes of the row. |
rowFormat | RowFormat | Read | Provides access to the formatting properties of the row. |
hidden | boolean | Read/Write | Gets or sets a flag indicating whether this row is hidden or not. |
text | String | Read | Gets the text of all cells in this row including the end of row character. |
Methods
| Signature | Description |
|---|---|
Row(doc: DocumentBase) | Initializes a new instance of the Row class. |
getNodeType() → int | Returns Row. |
getParentTable() → Table | Returns the immediate parent table of the row. |
isFirstRow() → boolean | True if this is the first row in a table; false otherwise. |
isLastRow() → boolean | True if this is the last row in a table; false otherwise. |
getNextRow() → Row | Gets the next Row node. |
getPreviousRow() → Row | Gets the previous Row node. |
getFirstCell() → Cell | Returns the first Cell in the row. |
getLastCell() → Cell | Returns the last Cell in the row. |
getCells() → CellCollection | Provides typed access to the Cell child nodes of the row. |
getRowFormat() → RowFormat | Provides access to the formatting properties of the row. |
getHidden() → boolean | Gets or sets a flag indicating whether this row is hidden or not. |
setHidden(value: boolean) | Sets the hidden value. |
accept(visitor: DocumentVisitor) → boolean | Calls accept(visitor) on this Row instance. |
acceptStart(visitor: DocumentVisitor) → int | Accepts a visitor for visiting the start of the row. |
acceptEnd(visitor: DocumentVisitor) → int | Accepts a visitor for visiting the end of the row. |
getText() → String | Gets the text of all cells in this row including the end of row character. |
ensureMinimum() | If the Row has no cells, creates and appends one Cell. |