public abstract class InlineStory extends CompositeNode
To learn more, visit the Logical Levels of Nodes in a Document documentation article.
InlineStory is a container for block-level nodes Paragraph and Table.
The classes that derive from InlineStory are inline-level nodes that can contain their own text (paragraphs and tables). For example, a Comment node contains text of a comment and a Footnote contains text of a footnote.
| Constructor and Description |
|---|
InlineStory() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRunAttrs() |
void |
ensureMinimum()
If the last child is not a paragraph, creates and appends one empty paragraph.
|
java.lang.Object |
fetchInheritedRunAttr(int fontAttr) |
java.lang.Object |
getDirectRunAttr(int fontAttr) |
DocumentBase |
getDocument_IInline() |
Paragraph |
getFirstParagraph()
Gets the first paragraph in the story.
|
Font |
getFont()
Provides access to the font formatting of the anchor character of this object.
|
Paragraph |
getLastParagraph()
Gets the last paragraph in the story.
|
ParagraphCollection |
getParagraphs()
Gets a collection of paragraphs that are immediate children of the story.
|
Paragraph |
getParentParagraph_IInline() |
Paragraph |
getParentParagraph()
Retrieves the parent
Paragraph of this node. |
abstract int |
getStoryType()
Returns the type of the story.
|
TableCollection |
getTables()
Gets a collection of tables that are immediate children of the story.
|
boolean |
isDeleteRevision()
Returns true if this object was deleted in Microsoft Word while change tracking was enabled.
|
boolean |
isInsertRevision()
Returns true if this object was inserted in Microsoft Word while change tracking was enabled.
|
boolean |
isMoveFromRevision()
Returns true if this object was moved (deleted) in Microsoft Word while change tracking was enabled.
|
boolean |
isMoveToRevision()
Returns true if this object was moved (inserted) in Microsoft Word while change tracking was enabled.
|
void |
removeRunAttr(int key) |
void |
setRunAttr(int fontAttr,
java.lang.Object value) |
acceptChildren, acceptCore, appendChild, coreRemoveSelfOnly, getChild, getChildNodes, getChildNodes, getContainer, getCount, getCurrentNode, getFirstChild, getLastChild, getNextMatchingNode, getText, hasChildNodes, indexOf, insertAfter, insertBefore, isComposite, iterator, prependChild, removeAllChildren, removeChild, removeSmartTags, selectNodes, selectSingleNodeaccept, dd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getNodeType, getParentNode, getPreviousSibling, getRange, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic abstract int getStoryType()
StoryType constants.public Paragraph getParentParagraph()
Paragraph of this node.Paragraph value.public Paragraph getFirstParagraph()
public Paragraph getLastParagraph()
public ParagraphCollection getParagraphs()
public TableCollection getTables()
public boolean isInsertRevision()
public boolean isDeleteRevision()
public boolean isMoveFromRevision()
public boolean isMoveToRevision()
public Font getFont()
Font value.public void ensureMinimum()
public Paragraph getParentParagraph_IInline()
public DocumentBase getDocument_IInline()
public java.lang.Object getDirectRunAttr(int fontAttr)
public java.lang.Object fetchInheritedRunAttr(int fontAttr)
public void setRunAttr(int fontAttr,
java.lang.Object value)
public void removeRunAttr(int key)
public void clearRunAttrs()