sdt_type property
StructuredDocumentTag.sdt_type property
Gets type of this Structured document tag.
@property
def sdt_type(self) -> aspose.words.markup.SdtType:
...
Examples
Shows how to get the type of a structured document tag.
doc = aw.Document(MY_DIR + "Structured document tags.docx")
tags = [node.as_structured_document_tag() for node in doc.get_child_nodes(aw.NodeType.STRUCTURED_DOCUMENT_TAG, True)]
self.assertEqual(aw.markup.SdtType.REPEATING_SECTION, tags[0].sdt_type)
self.assertEqual(aw.markup.SdtType.REPEATING_SECTION_ITEM, tags[1].sdt_type)
self.assertEqual(aw.markup.SdtType.RICH_TEXT, tags[2].sdt_type)
See Also
- module aspose.words.markup
- class StructuredDocumentTag