title property
IStructuredDocumentTag.title property
Specifies the friendly name associated with this SDT. Can not be null.
@property
def title(self) -> str:
...
@title.setter
def title(self, value: str):
...
Examples
Shows how to get structured document tag.
doc = aw.Document(file_name=MY_DIR + 'Structured document tags by id.docx')
# Get the structured document tag by Id.
sdt = doc.range.structured_document_tags.get_by_id(1160505028)
print(sdt.is_multi_section)
print(sdt.title)
# Get the structured document tag or ranged tag by Title.
sdt = doc.range.structured_document_tags.get_by_title('Alias4')
print(sdt.id)
See Also
- module aspose.words.markup
- class IStructuredDocumentTag