public class Run extends Inline
To learn more, visit the Programming with Documents documentation article.
All text of the document is stored in runs of text.
Run can only be a child of Paragraph or inline StructuredDocumentTag.
| Constructor and Description |
|---|
Run(DocumentBase doc)
Initializes a new instance of the Run class.
|
Run(DocumentBase doc,
java.lang.String text)
Initializes a new instance of the Run class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
int |
getNodeType()
Returns NodeType.Run.
|
java.lang.String |
getText()
Gets the text of the run.
|
void |
setText(java.lang.String value)
Sets the text of the run.
|
clearRunAttrs, fetchInheritedRunAttr, getDirectRunAttr, getDocument_IInline, getFont, getParentParagraph_IInline, getParentParagraph, isDeleteRevision, isFormatRevision, isInsertRevision, isMoveFromRevision, isMoveToRevision, removeMoveRevisions, removeRunAttr, setRunAttrdd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, isComposite, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic Run(DocumentBase doc)
When Run is created, it belongs to the specified document, but is not yet part of the document and ParentNode is null.
To append Run to the document use InsertAfter or InsertBefore on the paragraph where you want the run inserted.
doc - The owner document.public Run(DocumentBase doc, java.lang.String text)
When Run is created, it belongs to the specified document, but is not yet part of the document and ParentNode is null.
To append Run to the document use InsertAfter or InsertBefore on the paragraph where you want the run inserted.
doc - The owner document.text - The text of the run.public int getNodeType()
getNodeType in class NodeNodeType constants.public java.lang.String getText()
public void setText(java.lang.String value)
value - The text of the run.public boolean accept(DocumentVisitor visitor) throws java.lang.Exception
Calls DocumentVisitor.VisitRun.
For more info see the Visitor design pattern.