StructuredDocumentTag
Overview
StructuredDocumentTag is a class in Aspose.Words FOSS for Java.
Inherits from: CompositeNode<Node>, IMarkupNode, ITrackableNode, and 2 more.
Represents a structured document tag (SDT or content control) in a document.
Edition status of its 93 listed members (a property and its accessor methods are listed separately, overloads once): 93 not yet exercised by a verified example.
This class declares 62 methods for StructuredDocumentTag objects in Java programs.
Available methods include: StructuredDocumentTag, accept, acceptEnd, acceptStart, clear, getAppearance, getBuildingBlockCategory, getBuildingBlockGallery, getCalendarType, getChecked, getChildNodes, getColor, and 48 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: appearance, buildingBlockCategory, buildingBlockGallery, calendarType, checked, color, and 27 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
nodeType | int | Read | Returns StructuredDocumentTag. |
placeholder | BuildingBlock | Read | 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 XmlMapping element or the IsShowingPlaceholderText element is true. |
placeholderName | String | Read/Write | Gets or sets Name of the BuildingBlock containing placeholder text. |
level | int | Read | Gets the level at which this SDT occurs in the document tree. |
sdtType | int | Read | Gets type of this Structured document tag. |
id | int | Read | Specifies a unique read-only persistent numerical Id for this SDT. |
lockContentControl | boolean | Read/Write | When set to true, this property will prohibit a user from deleting this SDT. |
lockContents | boolean | Read/Write | When set to true, this property will prohibit a user from editing the contents of this SDT. |
showingPlaceholderText | boolean | Read/Write | Specifies whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT). |
tag | String | Read/Write | Specifies a tag associated with the current SDT node. |
contentsFont | Font | Read | Font formatting that will be applied to text entered into SDT. |
endCharacterFont | Font | Read | Font formatting that will be applied to the last character of text entered into SDT. |
temporary | boolean | Read/Write | Specifies whether this SDT shall be removed from the WordProcessingML document when its contents are modified. |
title | String | Read/Write | Specifies the friendly name associated with this SDT. |
listItems | SdtListItemCollection | Read | Gets SdtListItemCollection associated with this SDT. |
checked | boolean | Read/Write | Gets/Sets current state of the Checkbox SDT. |
appearance | int | Read/Write | Gets/sets the appearance of a structured document tag. |
dateDisplayLocale | int | Read/Write | Allows to set/get the language format for the date displayed in this SDT. |
dateDisplayFormat | String | Read/Write | String that represents the format in which dates are displayed. |
fullDate | java.util.Date | Read/Write | Gets or sets the full date. |
dateStorageFormat | int | Read/Write | Gets/sets format in which the date for a date SDT is stored when the SDT is bound to an XML node in the document’s data store. |
calendarType | int | Read/Write | Specifies the type of calendar for this SDT. |
buildingBlockGallery | String | Read/Write | Specifies type of building block for this SDT. |
buildingBlockCategory | String | Read/Write | Specifies category of building block for this SDT node. |
multiline | boolean | Read/Write | Specifies whether this SDT allows multiple lines of text. |
color | Color | Read/Write | Gets or sets the color of the structured document tag. |
style | Style | Read/Write | Gets or sets the Style of the structured document tag. |
styleName | String | Read/Write | Gets or sets the name of the style applied to the structured document tag. |
xmlMapping | XmlMapping | Read | Gets an object that represents the mapping of this structured document tag to XML data in a custom XML part of the current document. |
wordOpenXML | String | Read | Gets a string that represents the XML contained within the node in the SaveFormat.FLAT_OPC format. |
wordOpenXMLMinimal | String | Read | Gets a string that represents the XML contained within the node in the SaveFormat.FLAT_OPC format. |
multiSection | boolean | Read | Returns true if this instance is a ranged (multi-section) structured document tag. |
node | Node | Read | Returns Node object that implements this interface. |
Methods
| Signature | Description |
|---|---|
StructuredDocumentTag(doc: DocumentBase, type: int, level: int) | Initializes a new instance of the Structured document tag class. |
setCheckedSymbol(characterCode: int, fontName: String) | Sets the symbol used to represent the checked state of a check box content control. |
setUncheckedSymbol(characterCode: int, fontName: String) | Sets the symbol used to represent the unchecked state of a check box content control. |
removeSelfOnly() | Removes just this SDT node itself, but keeps the content of it inside the document tree. |
accept(visitor: DocumentVisitor) → boolean | Calls accept(visitor) on this StructuredDocumentTag instance. |
clear() | Clears contents of this structured document tag and displays a placeholder if it is defined. |
acceptStart(visitor: DocumentVisitor) → int | Accepts a visitor for visiting the start of the StructuredDocumentTag. |
acceptEnd(visitor: DocumentVisitor) → int | Accepts a visitor for visiting the end of the StructuredDocumentTag. |
getNodeType() → int | Returns StructuredDocumentTag. |
getPlaceholder() → BuildingBlock | 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 XmlMapping element or the IsShowingPlaceholderText element is true. |
getPlaceholderName() → String | Gets or sets Name of the BuildingBlock containing placeholder text. |
setPlaceholderName(value: String) | Sets the placeholder name value. |
getLevel() → int | Gets the level at which this SDT occurs in the document tree. |
getSdtType() → int | Gets type of this Structured document tag. |
getId() → int | Specifies a unique read-only persistent numerical Id for this SDT. |
getLockContentControl() → boolean | When set to true, this property will prohibit a user from deleting this SDT. |
setLockContentControl(value: boolean) | Sets the lock content control value. |
getLockContents() → boolean | When set to true, this property will prohibit a user from editing the contents of this SDT. |
setLockContents(value: boolean) | Sets the lock contents value. |
isShowingPlaceholderText() → boolean | Specifies whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT). |
isShowingPlaceholderText(value: boolean) | Calls isShowingPlaceholderText(value) on this StructuredDocumentTag instance. |
getTag() → String | Specifies a tag associated with the current SDT node. |
setTag(value: String) | Sets the tag value. |
getContentsFont() → Font | Font formatting that will be applied to text entered into SDT. |
getEndCharacterFont() → Font | Font formatting that will be applied to the last character of text entered into SDT. |
isTemporary() → boolean | Specifies whether this SDT shall be removed from the WordProcessingML document when its contents are modified. |
isTemporary(value: boolean) | Calls isTemporary(value) on this StructuredDocumentTag instance. |
getTitle() → String | Specifies the friendly name associated with this SDT. |
setTitle(value: String) | Sets the title value. |
getListItems() → SdtListItemCollection | Gets SdtListItemCollection associated with this SDT. |
getChecked() → boolean | Gets/Sets current state of the Checkbox SDT. |
setChecked(value: boolean) | Sets the checked value. |
getAppearance() → int | Gets/sets the appearance of a structured document tag. |
setAppearance(value: int) | Sets the appearance value. |
getDateDisplayLocale() → int | Allows to set/get the language format for the date displayed in this SDT. |
setDateDisplayLocale(value: int) | Sets the date display locale value. |
getDateDisplayFormat() → String | String that represents the format in which dates are displayed. |
setDateDisplayFormat(value: String) | Sets the date display format value. |
getFullDate() → java.util.Date | Returns the full date. |
setFullDate(value: java.util.Date) | Sets the full date value. |
getDateStorageFormat() → int | Gets/sets format in which the date for a date SDT is stored when the SDT is bound to an XML node in the document’s data store. |
setDateStorageFormat(value: int) | Sets the date storage format value. |
getCalendarType() → int | Specifies the type of calendar for this SDT. |
setCalendarType(value: int) | Sets the calendar type value. |
getBuildingBlockGallery() → String | Specifies type of building block for this SDT. |
setBuildingBlockGallery(value: String) | Sets the building block gallery value. |
getBuildingBlockCategory() → String | Specifies category of building block for this SDT node. |
setBuildingBlockCategory(value: String) | Sets the building block category value. |
getMultiline() → boolean | Specifies whether this SDT allows multiple lines of text. |
setMultiline(value: boolean) | Sets the multiline value. |
getColor() → Color | Gets or sets the color of the structured document tag. |
setColor(value: Color) | Sets the color value. |
getStyle() → Style | Gets or sets the Style of the structured document tag. |
setStyle(value: Style) | Sets the style value. |
getStyleName() → String | Gets or sets the name of the style applied to the structured document tag. |
setStyleName(value: String) | Sets the style name value. |
getXmlMapping() → XmlMapping | Gets an object that represents the mapping of this structured document tag to XML data in a custom XML part of the current document. |
getWordOpenXML() → String | Gets a string that represents the XML contained within the node in the SaveFormat.FLAT_OPC format. |
getWordOpenXMLMinimal() → String | Gets a string that represents the XML contained within the node in the SaveFormat.FLAT_OPC format. |
getChildNodes(nodeType: int, isDeep: boolean) → NodeCollection | Returns a live collection of child nodes that match the specified types. |
isMultiSection() → boolean | Returns true if this instance is a ranged (multi-section) structured document tag. |
getNode() → Node | Returns Node object that implements this interface. |