public interface IStructuredDocumentTag
StructuredDocumentTag and StructuredDocumentTagRangeStart.| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Gets the color of the structured document tag.
|
int |
getId()
Specifies a unique read-only persistent numerical Id for this SDT.
|
int |
getLevel()
Gets the level at which this SDT occurs in the document tree.
|
boolean |
getLockContentControl()
When set to true, this property will prohibit a user from deleting this SDT.
|
boolean |
getLockContents()
When set to true, this property will prohibit a user from editing the contents of this SDT.
|
BuildingBlock |
getPlaceholder()
Gets the
BuildingBlock containing placeholder text which should be displayed when this SDT 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. |
int |
getSdtType()
Gets type of this Structured document tag.
|
java.lang.String |
getTag()
Specifies a tag associated with the current SDT node.
|
java.lang.String |
getTitle()
Specifies the friendly name associated with this SDT.
|
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 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 SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
|
void |
isShowingPlaceholderText(boolean value)
Specifies whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
|
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 SDT.
|
void |
setLockContents(boolean value)
When set to true, this property will prohibit a user from editing the contents of this SDT.
|
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 SDT node.
|
void |
setTitle(java.lang.String value)
Specifies the friendly name associated with this SDT.
|
Node |
structuredDocumentTagNode()
Returns Node object that implements this interface.
|
boolean isRanged()
Node structuredDocumentTagNode()
int getId()
Specifies a unique read-only persistent numerical Id for this SDT.
int value.java.lang.String getTag()
String value.void setTag(java.lang.String value)
value - The corresponding String value.java.lang.String getTitle()
String value.void setTitle(java.lang.String value)
value - The corresponding String value.BuildingBlock getPlaceholder()
BuildingBlock containing placeholder text which should be displayed when this SDT 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 Sdt.BuildingBlock containing placeholder text which should be displayed when this SDT 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.
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.
String value.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.
value - The corresponding String value.boolean isShowingPlaceholderText()
Specifies whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
if set to true, this state shall be resumed (showing placeholder text) upon opening this document.
boolean value.void isShowingPlaceholderText(boolean value)
Specifies whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
if set to true, this state shall be resumed (showing placeholder text) upon opening this document.
value - The corresponding boolean value.int getLevel()
MarkupLevel constants.int getSdtType()
SdtType constants.boolean getLockContentControl()
boolean value.void setLockContentControl(boolean value)
value - The corresponding boolean value.boolean getLockContents()
boolean value.void setLockContents(boolean value)
value - The corresponding boolean value.java.awt.Color getColor()
void setColor(java.awt.Color value)
value - The color of the structured document tag.XmlMapping getXmlMapping()
XmlMapping.setMapping(com.aspose.words.CustomXmlPart, java.lang.String, java.lang.String) method of this object to map a structured document tag to XML data.java.lang.String getWordOpenXML()
throws java.lang.Exception
SaveFormat.FLAT_OPC format.SaveFormat.FLAT_OPC format.java.lang.Exception