com.aspose.words.CompositeNodecom.aspose.words.Row
public class Row
Row can only be a child of a Table. Row can contain one or more Cell nodes. A minimal valid row needs to have at least one Cell.
Property Getters/Setters Summary | ||
---|---|---|
CellCollection | getCells() | |
Provides typed access to the Cell child nodes of the row. | ||
Aspose.Words.NodeCollection | getChildNodes() | → inherited from Aspose.Words.CompositeNode |
Gets all immediate child nodes of this node. | ||
int | getCount() | → inherited from Aspose.Words.CompositeNode |
Gets the number of immediate children of this node. | ||
Aspose.Words.DocumentBase | getDocument() | → inherited from Aspose.Words.Node |
Gets the document to which this node belongs. | ||
Cell | getFirstCell() | |
Returns the first Cell in the row. | ||
Aspose.Words.Node | getFirstChild() | → inherited from Aspose.Words.CompositeNode |
Gets the first child of the node. | ||
boolean | hasChildNodes() | → inherited from Aspose.Words.CompositeNode |
Returns true if this node has any child nodes. | ||
boolean | isComposite() | → inherited from Aspose.Words.CompositeNode |
Returns true as this node can have child nodes. | ||
boolean | isFirstRow() | |
True if this is the first row in a table; false otherwise. | ||
boolean | isLastRow() | |
True if this is the last row in a table; false otherwise. | ||
Cell | getLastCell() | |
Returns the last Cell in the row. | ||
Aspose.Words.Node | getLastChild() | → inherited from Aspose.Words.CompositeNode |
Gets the last child of the node. | ||
Aspose.Words.Node | getNextSibling() | → inherited from Aspose.Words.Node |
Gets the node immediately following this node. | ||
Aspose.Words.NodeType | getNodeType() | |
Returns NodeType.Row. | ||
Aspose.Words.CompositeNode | getParentNode() | → inherited from Aspose.Words.Node |
Gets the immediate parent of this node. | ||
Table | getParentTable() | |
Returns the immediate parent table of the row. | ||
Aspose.Words.Node | getPreviousSibling() | → inherited from Aspose.Words.Node |
Gets the node immediately preceding this node. | ||
Aspose.Words.Range | getRange() | → inherited from Aspose.Words.Node |
Returns a Range object that represents the portion of a document that is contained in this node. | ||
RowFormat | getRowFormat() | |
Provides access to the formatting properties of the row. |
Method Summary | ||
---|---|---|
void | clearRowAttrs() | |
Reserved for internal use. | ||
void | dd() | → inherited from Aspose.Words.CompositeNode |
Aspose.Words.Node | deepClone(boolean isCloneChildren) | → inherited from Aspose.Words.Node |
Creates a duplicate of the node. | ||
void | ensureMinimum() | |
If the Row has no cells, creates and appends one Cell. | ||
java.lang.Object | fetchInheritedRowAttr(int key) | |
Reserved for internal use. | ||
java.lang.Object | fetchRowAttr(int key) | |
Reserved for internal use. | ||
Aspose.Words.CompositeNode | getAncestor(java.lang.Class ancestorType) | → inherited from Aspose.Words.Node |
Gets the first ancestor of the specified object type. | ||
Aspose.Words.CompositeNode | getContainer() | → inherited from Aspose.Words.CompositeNode |
Reserved for internal use. | ||
aspose.obfuscated.type | getDeleteRevision() | |
Reserved for internal use. | ||
java.lang.Object | getDirectRowAttr(int key) | |
Reserved for internal use. | ||
aspose.obfuscated.type | getInsertRevision() | |
Reserved for internal use. | ||
aspose.obfuscated.type | getMoveFromRevision() | |
Reserved for internal use. | ||
aspose.obfuscated.type | getMoveToRevision() | |
Reserved for internal use. | ||
Aspose.Words.Node | getNextMatchingNode(aspose.obfuscated.type curNode) | → inherited from Aspose.Words.CompositeNode |
Reserved for internal use. | ||
java.lang.String | getText() | |
Gets the text of all cells in this row including the end of row character. | ||
java.util.Iterator | iterator() | → inherited from Aspose.Words.CompositeNode |
Provides support for the for each style iteration over the child nodes of this node. | ||
void | remove() | → inherited from Aspose.Words.Node |
Removes itself from the parent. | ||
void | removeAllChildren() | → inherited from Aspose.Words.CompositeNode |
Removes all the child nodes of the current node. | ||
void | removeSmartTags() | → inherited from Aspose.Words.CompositeNode |
Removes all |
||
void | resetToDefaultAttrs() | |
Reserved for internal use. | ||
Aspose.Words.NodeList | selectNodes(java.lang.String xpath) | → inherited from Aspose.Words.CompositeNode |
Selects a list of nodes matching the XPath expression. | ||
Aspose.Words.Node | selectSingleNode(java.lang.String xpath) | → inherited from Aspose.Words.CompositeNode |
Selects the first Node that matches the XPath expression. | ||
void | setDeleteRevision(aspose.obfuscated.type value) | |
Reserved for internal use. | ||
void | setInsertRevision(aspose.obfuscated.type value) | |
Reserved for internal use. | ||
void | setMoveFromRevision(aspose.obfuscated.type value) | |
Reserved for internal use. | ||
void | setMoveToRevision(aspose.obfuscated.type value) | |
Reserved for internal use. | ||
void | setRowAttr(int key, java.lang.Object value) | |
Reserved for internal use. | ||
java.lang.String | toString() | → inherited from Aspose.Words.Node |
java.lang.String | toString(SaveOptions saveOptions) | → inherited from Aspose.Words.Node |
Exports the content of the node into a string using the specified save options. | ||
java.lang.String | toTxt() | → inherited from Aspose.Words.Node |
Exports the content of the node into a string in plain text format. |
Property Getters/Setters Detail |
---|
getCells | |
public CellCollection getCells() |
getChildNodes | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.NodeCollection getChildNodes() |
Note, GetChildNodes(NodeType.Any, false)
and creates and returns a new collection every time it is accessed.
If there are no child nodes, this property returns an empty collection.
getCount | → inherited from Aspose.Words.CompositeNode |
public int getCount() |
getDocument | → inherited from Aspose.Words.Node |
public Aspose.Words.DocumentBase getDocument() |
The node always belongs to a document even if it has just been created and not yet added to the tree, or if it has been removed from the tree.
getFirstCell | |
public Cell getFirstCell() |
getFirstChild | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.Node getFirstChild() |
hasChildNodes | → inherited from Aspose.Words.CompositeNode |
public boolean hasChildNodes() |
isComposite | → inherited from Aspose.Words.CompositeNode |
public boolean isComposite() |
isFirstRow | |
public boolean isFirstRow() |
isLastRow | |
public boolean isLastRow() |
getLastCell | |
public Cell getLastCell() |
getLastChild | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.Node getLastChild() |
getNextSibling | → inherited from Aspose.Words.Node |
public Aspose.Words.Node getNextSibling() |
getNodeType | |
public Aspose.Words.NodeType getNodeType() |
getParentNode | → inherited from Aspose.Words.Node |
public Aspose.Words.CompositeNode getParentNode() |
If a node has just been created and not yet added to the tree, or if it has been removed from the tree, the parent is null.
getParentTable | |
public Table getParentTable() |
(Table)FirstNonMarkupParentNode
.getPreviousSibling | → inherited from Aspose.Words.Node |
public Aspose.Words.Node getPreviousSibling() |
getRange | → inherited from Aspose.Words.Node |
public Aspose.Words.Range getRange() |
getRowFormat | |
public RowFormat getRowFormat() |
Method Detail |
---|
clearRowAttrs | |
public void clearRowAttrs() |
dd | → inherited from Aspose.Words.CompositeNode |
public void dd() |
deepClone | → inherited from Aspose.Words.Node |
public Aspose.Words.Node deepClone(boolean isCloneChildren) |
This method serves as a copy constructor for nodes. The cloned node has no parent, but belongs to the same document as the original node.
This method always performs a deep copy of the node. The isCloneChildren parameter specifies whether to perform copy all child nodes as well.
isCloneChildren
- True to recursively clone the subtree under the specified node;
false to clone only the node itself.ensureMinimum | |
public void ensureMinimum() |
fetchInheritedRowAttr | |
public java.lang.Object fetchInheritedRowAttr(int key) |
fetchRowAttr | |
public java.lang.Object fetchRowAttr(int key) |
getAncestor | → inherited from Aspose.Words.Node |
public Aspose.Words.CompositeNode getAncestor(java.lang.Class ancestorType) |
The ancestor type matches if it is equal to ancestorType or derived from ancestorType.
ancestorType
- The object type of the ancestor to retrieve.getContainer | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.CompositeNode getContainer() |
getDeleteRevision | |
public aspose.obfuscated.type getDeleteRevision() |
getDirectRowAttr | |
public java.lang.Object getDirectRowAttr(int key) |
getInsertRevision | |
public aspose.obfuscated.type getInsertRevision() |
getMoveFromRevision | |
public aspose.obfuscated.type getMoveFromRevision() |
getMoveToRevision | |
public aspose.obfuscated.type getMoveToRevision() |
getNextMatchingNode | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.Node getNextMatchingNode(aspose.obfuscated.type curNode) |
getText | |
public java.lang.String getText() |
Returns concatenated text of all child nodes with the end of row character
The returned string includes all control and special characters as described in
iterator | → inherited from Aspose.Words.CompositeNode |
public java.util.Iterator iterator() |
remove | → inherited from Aspose.Words.Node |
public void remove() |
removeAllChildren | → inherited from Aspose.Words.CompositeNode |
public void removeAllChildren() |
removeSmartTags | → inherited from Aspose.Words.CompositeNode |
public void removeSmartTags() |
resetToDefaultAttrs | |
public void resetToDefaultAttrs() |
selectNodes | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.NodeList selectNodes(java.lang.String xpath) |
Only expressions with element names are supported at the moment. Expressions that use attribute names are not supported.
xpath
- The XPath expression.selectSingleNode | → inherited from Aspose.Words.CompositeNode |
public Aspose.Words.Node selectSingleNode(java.lang.String xpath) |
Only expressions with element names are supported at the moment. Expressions that use attribute names are not supported.
xpath
- The XPath expression.setDeleteRevision | |
public void setDeleteRevision(aspose.obfuscated.type value) |
setInsertRevision | |
public void setInsertRevision(aspose.obfuscated.type value) |
setMoveFromRevision | |
public void setMoveFromRevision(aspose.obfuscated.type value) |
setMoveToRevision | |
public void setMoveToRevision(aspose.obfuscated.type value) |
setRowAttr | |
public void setRowAttr(int key, java.lang.Object value) |
toString | → inherited from Aspose.Words.Node |
public java.lang.String toString() |
toString | → inherited from Aspose.Words.Node |
public java.lang.String toString(SaveOptions saveOptions) throws java.lang.Exception |
saveOptions
- Specifies the options that control how the node is saved.toTxt | → inherited from Aspose.Words.Node |
public java.lang.String toTxt() throws java.lang.Exception |
This method removes field codes and Microsoft Word control characters, uses CrLf
(or any other) combination of characters to mark ends of paragraphs in the resulting string.
It produces a different result from