public interface IStructuredDocumentTag
| Property Getters/Setters Summary | ||
|---|---|---|
abstract java.awt.Color | getColor() | |
abstract void | setColor(java.awt.Color value) | |
| Gets or sets the color of the structured document tag. | ||
abstract int | getId() | |
| Specifies a unique read-only persistent numerical Id for this SDT. |
||
abstract boolean | isShowingPlaceholderText() | |
abstract 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. |
||
abstract int | getLevel() | |
| Gets the level at which this SDT occurs in the document tree. The value of the property is MarkupLevel integer constant. | ||
abstract boolean | getLockContentControl() | |
abstract void | setLockContentControl(boolean value) | |
| When set to true, this property will prohibit a user from deleting this SDT. | ||
abstract boolean | getLockContents() | |
abstract void | setLockContents(boolean value) | |
| When set to true, this property will prohibit a user from editing the contents of this SDT. | ||
abstract BuildingBlock | getPlaceholder() | |
|
Gets the |
||
abstract java.lang.String | getPlaceholderName() | |
abstract void | setPlaceholderName(java.lang.String value) | |
| Gets or sets Name of the
BuildingBlock with this name |
||
abstract int | getSdtType() | |
| Gets type of this Structured document tag. The value of the property is SdtType integer constant. | ||
abstract java.lang.String | getTag() | |
abstract void | setTag(java.lang.String value) | |
| Specifies a tag associated with the current SDT node. Can not be null. | ||
abstract java.lang.String | getTitle() | |
abstract void | setTitle(java.lang.String value) | |
| Specifies the friendly name associated with this SDT. Can not be null. | ||
abstract java.lang.String | getWordOpenXML() | |
|
Gets a string that represents the XML contained within the node in the |
||
abstract 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. | ||
| Method Summary | ||
|---|---|---|
abstract boolean | isRanged() | |
| Returns true if this instance is a ranged structured document tag. | ||
abstract Node | structuredDocumentTagNode() | |
| Returns Node object that implements this interface. | ||
| Property Getters/Setters Detail |
|---|
getColor/setColor | |
public abstract java.awt.Color getColor() / public abstract void setColor(java.awt.Color value) | |
getId | |
public abstract int getId() | |
Specifies a unique read-only persistent numerical Id for this SDT.
isShowingPlaceholderText/isShowingPlaceholderText | |
public abstract boolean isShowingPlaceholderText() / public abstract 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.
getLevel | |
public abstract int getLevel() | |
getLockContentControl/setLockContentControl | |
public abstract boolean getLockContentControl() / public abstract void setLockContentControl(boolean value) | |
getLockContents/setLockContents | |
public abstract boolean getLockContents() / public abstract void setLockContents(boolean value) | |
getPlaceholder | |
public abstract BuildingBlock getPlaceholder() | |
getPlaceholderName/setPlaceholderName | |
public abstract java.lang.String getPlaceholderName() / public abstract void setPlaceholderName(java.lang.String value) | |
Gets or sets Name of the
BuildingBlock with this name
getSdtType | |
public abstract int getSdtType() | |
getTag/setTag | |
public abstract java.lang.String getTag() / public abstract void setTag(java.lang.String value) | |
getTitle/setTitle | |
public abstract java.lang.String getTitle() / public abstract void setTitle(java.lang.String value) | |
Example:
Shows how to get structured document tag.
Document doc = new Document(getMyDir() + "Structured document tags by id.docx");
// Get the structured document tag by Id.
IStructuredDocumentTag sdt = doc.getRange().getStructuredDocumentTags().getById(1160505028);
System.out.println(sdt.isRanged());
System.out.println(sdt.getTitle());
// Get the structured document tag or ranged tag by Title.
sdt = doc.getRange().getStructuredDocumentTags().getByTitle("Alias4");
System.out.println(sdt.getId());getWordOpenXML | |
public abstract java.lang.String getWordOpenXML() | |
getXmlMapping | |
public abstract XmlMapping getXmlMapping() | |
| Method Detail |
|---|
isRanged | |
public abstract boolean isRanged() | |
Example:
Shows how to get structured document tag.
Document doc = new Document(getMyDir() + "Structured document tags by id.docx");
// Get the structured document tag by Id.
IStructuredDocumentTag sdt = doc.getRange().getStructuredDocumentTags().getById(1160505028);
System.out.println(sdt.isRanged());
System.out.println(sdt.getTitle());
// Get the structured document tag or ranged tag by Title.
sdt = doc.getRange().getStructuredDocumentTags().getByTitle("Alias4");
System.out.println(sdt.getId());structuredDocumentTagNode | |
public abstract Node structuredDocumentTagNode() | |