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

NameTypeAccessDescription
nodeTypeintReadReturns Row.
parentTableTableReadReturns the immediate parent table of the row.
firstRowbooleanReadTrue if this is the first row in a table; false otherwise.
lastRowbooleanReadTrue if this is the last row in a table; false otherwise.
nextRowRowReadGets the next Row node.
previousRowRowReadGets the previous Row node.
firstCellCellReadReturns the first Cell in the row.
lastCellCellReadReturns the last Cell in the row.
cellsCellCollectionReadProvides typed access to the Cell child nodes of the row.
rowFormatRowFormatReadProvides access to the formatting properties of the row.
hiddenbooleanRead/WriteGets or sets a flag indicating whether this row is hidden or not.
textStringReadGets the text of all cells in this row including the end of row character.

Methods

SignatureDescription
Row(doc: DocumentBase)Initializes a new instance of the Row class.
getNodeType() → intReturns Row.
getParentTable() → TableReturns the immediate parent table of the row.
isFirstRow() → booleanTrue if this is the first row in a table; false otherwise.
isLastRow() → booleanTrue if this is the last row in a table; false otherwise.
getNextRow() → RowGets the next Row node.
getPreviousRow() → RowGets the previous Row node.
getFirstCell() → CellReturns the first Cell in the row.
getLastCell() → CellReturns the last Cell in the row.
getCells() → CellCollectionProvides typed access to the Cell child nodes of the row.
getRowFormat() → RowFormatProvides access to the formatting properties of the row.
getHidden() → booleanGets or sets a flag indicating whether this row is hidden or not.
setHidden(value: boolean)Sets the hidden value.
accept(visitor: DocumentVisitor) → booleanCalls accept(visitor) on this Row instance.
acceptStart(visitor: DocumentVisitor) → intAccepts a visitor for visiting the start of the row.
acceptEnd(visitor: DocumentVisitor) → intAccepts a visitor for visiting the end of the row.
getText() → StringGets 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.

See Also