public class StructuredDocumentTagRangeStart extends Node implements IStructuredDocumentTag, java.lang.Iterable
StructuredDocumentTagRangeEnd.
To learn more, visit the Structured Document Tags or Content Control documentation article.
Can be immediate child ofBody node only.| Constructor and Description |
|---|
StructuredDocumentTagRangeStart(DocumentBase doc,
int type)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentVisitor visitor)
Accepts a visitor.
|
Node |
appendChild(Node newChild)
Adds the specified node to the end of the stdContent range.
|
NodeCollection |
getChildNodes()
Gets all nodes between this range start node and the range end node.
|
NodeCollection |
getChildNodes(int nodeType,
boolean isDeep) |
java.awt.Color |
getColor()
Gets the color of the structured document tag.
|
int |
getId()
Specifies a unique read-only persistent numerical Id for this structured document tag.
|
Node |
getLastChild()
Gets the last child in the stdContent range.
|
int |
getLevel()
Gets the level at which this structured document tag range start occurs in the document tree.
|
boolean |
getLockContentControl()
When set to true, this property will prohibit a user from deleting this structured document tag.
|
boolean |
getLockContents()
When set to true, this property will prohibit a user from editing the contents of this structured document tag.
|
int |
getNodeType()
Gets the type of this node.
|
BuildingBlock |
getPlaceholder()
Gets the
BuildingBlock containing placeholder text which should be displayed when this structured document tag run contents are empty, the associated mapped XML element is empty as specified via the getXmlMapping() element or the isShowingPlaceholderText() / isShowingPlaceholderText(boolean) element is true. |
java.lang.String |
getPlaceholderName()
Gets or sets Name of the
BuildingBlock containing placeholder text. |
StructuredDocumentTagRangeEnd |
getRangeEnd()
Specifies end of range if the StructuredDocumentTag is a ranged structured document tag.
|
int |
getSdtType()
Gets type of this structured document tag.
|
java.lang.String |
getTag()
Specifies a tag associated with the current structured document tag node.
|
java.lang.String |
getTitle()
Specifies the friendly name associated with this structured document tag.
|
java.lang.String |
getWordOpenXML()
Gets a string that represents the XML contained within the node in the
SaveFormat.FLAT_OPC format. |
XmlMapping |
getXmlMapping()
Gets an object that represents the mapping of this structured document tag range to XML data in a custom XML part of the current document.
|
boolean |
isRanged()
Returns true if this instance is a ranged structured document tag.
|
boolean |
isShowingPlaceholderText()
Specifies whether the content of this structured document tag shall be interpreted to contain placeholder text (as opposed to regular text contents within the structured document tag).
|
void |
isShowingPlaceholderText(boolean value)
Specifies whether the content of this structured document tag shall be interpreted to contain placeholder text (as opposed to regular text contents within the structured document tag).
|
java.util.Iterator |
iterator()
Provides support for the for each style iteration over the child nodes of this node.
|
void |
removeAllChildren()
Removes all the nodes between this range start node and the range end node.
|
void |
removeSelfOnly()
Removes this range start and appropriate range end nodes of the structured document tag, but keeps its content inside the document tree.
|
void |
setColor(java.awt.Color value)
Sets the color of the structured document tag.
|
void |
setLockContentControl(boolean value)
When set to true, this property will prohibit a user from deleting this structured document tag.
|
void |
setLockContents(boolean value)
When set to true, this property will prohibit a user from editing the contents of this structured document tag.
|
void |
setPlaceholderName(java.lang.String value)
Gets or sets Name of the
BuildingBlock containing placeholder text. |
void |
setTag(java.lang.String value)
Specifies a tag associated with the current structured document tag node.
|
void |
setTitle(java.lang.String value)
Specifies the friendly name associated with this structured document tag.
|
Node |
structuredDocumentTagNode()
Returns Node object that implements this interface.
|
dd, deepClone, getAncestor, getAncestor, getCustomNodeId, getDocument, getNextSibling, getParentNode, getPreviousSibling, getRange, getText, isComposite, memberwiseClone, nextPreOrder, nodeTypeToString, previousPreOrder, remove, setCustomNodeId, toString, toString, toString, visitorActionToBoolpublic StructuredDocumentTagRangeStart(DocumentBase doc, int type)
public NodeCollection getChildNodes(int nodeType, boolean isDeep)
public boolean isRanged()
IStructuredDocumentTagisRanged in interface IStructuredDocumentTagpublic Node structuredDocumentTagNode()
IStructuredDocumentTagstructuredDocumentTagNode in interface IStructuredDocumentTagpublic int getNodeType()
NodegetNodeType in class NodeNodeType constants.public NodeCollection getChildNodes()
public Node getLastChild()
public int getLevel()
getLevel in interface IStructuredDocumentTagMarkupLevel constants.public int getSdtType()
getSdtType in interface IStructuredDocumentTagSdtType constants.public java.awt.Color getColor()
getColor in interface IStructuredDocumentTagpublic void setColor(java.awt.Color value)
setColor in interface IStructuredDocumentTagvalue - The color of the structured document tag.public int getId()
Specifies a unique read-only persistent numerical Id for this structured document tag.
Id attribute shall follow these rules:
Document.deepClone().
DocumentBase.importNode(com.aspose.words.Node, boolean) Id shall be retained if import does not cause conflicts with other structured document tag Ids in the target document.
getId in interface IStructuredDocumentTagint value.public boolean getLockContentControl()
getLockContentControl in interface IStructuredDocumentTagboolean value.public void setLockContentControl(boolean value)
setLockContentControl in interface IStructuredDocumentTagvalue - The corresponding boolean value.public boolean getLockContents()
getLockContents in interface IStructuredDocumentTagboolean value.public void setLockContents(boolean value)
setLockContents in interface IStructuredDocumentTagvalue - The corresponding boolean value.public boolean isShowingPlaceholderText()
Specifies whether the content of this structured document tag shall be interpreted to contain placeholder text (as opposed to regular text contents within the structured document tag).
if set to true, this state shall be resumed (showing placeholder text) upon opening this document.
isShowingPlaceholderText in interface IStructuredDocumentTagboolean value.public void isShowingPlaceholderText(boolean value)
Specifies whether the content of this structured document tag shall be interpreted to contain placeholder text (as opposed to regular text contents within the structured document tag).
if set to true, this state shall be resumed (showing placeholder text) upon opening this document.
isShowingPlaceholderText in interface IStructuredDocumentTagvalue - The corresponding boolean value.public BuildingBlock getPlaceholder()
BuildingBlock containing placeholder text which should be displayed when this structured document tag run contents are empty, the associated mapped XML element is empty as specified via the getXmlMapping() element or the isShowingPlaceholderText() / isShowingPlaceholderText(boolean) element is true.
Can be null, meaning that the placeholder is not applicable for this structured document tag.getPlaceholder in interface IStructuredDocumentTagBuildingBlock containing placeholder text which should be displayed when this structured document tag run contents are empty, the associated mapped XML element is empty as specified via the getXmlMapping() element or the isShowingPlaceholderText() / isShowingPlaceholderText(boolean) element is true.public java.lang.String getPlaceholderName()
Gets or sets Name of the BuildingBlock containing placeholder text.
BuildingBlock with this name BuildingBlock.getName() / BuildingBlock.setName(java.lang.String) has to be present in the Document.getGlossaryDocument() / Document.setGlossaryDocument(com.aspose.words.GlossaryDocument) otherwise IllegalStateException will occur.
getPlaceholderName in interface IStructuredDocumentTagString value.public void setPlaceholderName(java.lang.String value)
Gets or sets Name of the BuildingBlock containing placeholder text.
BuildingBlock with this name BuildingBlock.getName() / BuildingBlock.setName(java.lang.String) has to be present in the Document.getGlossaryDocument() / Document.setGlossaryDocument(com.aspose.words.GlossaryDocument) otherwise IllegalStateException will occur.
setPlaceholderName in interface IStructuredDocumentTagvalue - The corresponding String value.public java.lang.String getTag()
getTag in interface IStructuredDocumentTagString value.public void setTag(java.lang.String value)
setTag in interface IStructuredDocumentTagvalue - The corresponding String value.public java.lang.String getTitle()
getTitle in interface IStructuredDocumentTagString value.public void setTitle(java.lang.String value)
setTitle in interface IStructuredDocumentTagvalue - The corresponding String value.public java.lang.String getWordOpenXML()
throws java.lang.Exception
SaveFormat.FLAT_OPC format.getWordOpenXML in interface IStructuredDocumentTagSaveFormat.FLAT_OPC format.java.lang.Exceptionpublic XmlMapping getXmlMapping()
XmlMapping.setMapping(com.aspose.words.CustomXmlPart, java.lang.String, java.lang.String) method of this object to map a structured document tag range to XML data.getXmlMapping in interface IStructuredDocumentTagpublic boolean accept(DocumentVisitor visitor) throws java.lang.Exception
NodeEnumerates over this node and all of its children. Each node calls a corresponding method on DocumentVisitor.
For more info see the Visitor design pattern.
public StructuredDocumentTagRangeEnd getRangeEnd()
StructuredDocumentTagRangeEnd value.public java.util.Iterator iterator()
iterator in interface java.lang.Iterablepublic Node appendChild(Node newChild)
newChild - The node to add.public void removeAllChildren()
public void removeSelfOnly()