IStructuredDocumentTag

IStructuredDocumentTag

Overview

IStructuredDocumentTag is a interface in Aspose.Words FOSS for .NET.

Interface to define a common data for StructuredDocumentTag and StructuredDocumentTagRangeStart.

This interface provides 2 methods for working with IStructuredDocumentTag objects in .NET programs. Available methods include: GetChildNodes, RemoveSelfOnly. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Appearance, Color, Id, IsMultiSection, IsShowingPlaceholderText, Level, and 10 more.

Properties

NameTypeAccessDescription
IsMultiSectionboolReadReturns true if this instance is a ranged (multi-section) structured document tag.
NodeNodeReadReturns Node object that implements this interface.
IdintReadSpecifies a unique read-only persistent numerical Id for this SDT.
TagstringRead/WriteSpecifies a tag associated with the current SDT node.
TitlestringRead/WriteSpecifies the friendly name associated with this SDT.
PlaceholderBuildingBlockReadGets 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.
PlaceholderNamestringRead/WriteGets or sets Name of the BuildingBlock containing placeholder text.
AppearanceSdtAppearanceRead/WriteGets or sets the appearance of the structured document tag.
IsShowingPlaceholderTextboolRead/WriteSpecifies whether the content of this SDT shall be interpreted to contain placeholder text (as opposed to regular text contents within the SDT).
LevelMarkupLevelReadGets the level at which this SDT occurs in the document tree.
SdtTypeSdtTypeReadGets type of this Structured document tag.
LockContentControlboolRead/WriteWhen set to true, this property will prohibit a user from deleting this SDT.
LockContentsboolRead/WriteWhen set to true, this property will prohibit a user from editing the contents of this SDT.
ColorSystem.Drawing.ColorRead/WriteGets or sets the color of the structured document tag.
XmlMappingXmlMappingReadGets an object that represents the mapping of this structured document tag to XML data in a custom XML part of the current document.
WordOpenXMLstringReadGets a string that represents the XML contained within the node in the FlatOpc format.

Methods

SignatureDescription
RemoveSelfOnly()Removes just this SDT node itself, but keeps the content of it inside the document tree.
GetChildNodes(nodeType: NodeType, isDeep: bool)Returns a live collection of child nodes that match the specified types.

See Also