SdtAppearance enumeration

SdtAppearance enumeration

Specifies the appearance of a structured document tag.

Members

NameDescription
BOUNDING_BOXRepresents a structured document tag shown as a shaded rectangle or bounding box.
TAGSRepresents a structured document tag shown as start and end markers.
HIDDENRepresents a structured document tag that is not shown.
DEFAULTDefaults to SdtAppearance.BOUNDING_BOX.

Examples

Shows how to show tag around content.

doc = aw.Document(file_name=MY_DIR + "Multi-section structured document tags.docx")
tag = doc.get_child(aw.NodeType.STRUCTURED_DOCUMENT_TAG_RANGE_START, 0,
                    True).as_structured_document_tag_range_start()

if tag.appearance == aw.markup.SdtAppearance.HIDDEN:
    tag.appearance = aw.markup.SdtAppearance.TAGS

See Also