Aspose::Words::Markup::SdtAppearance enum

SdtAppearance enum

Specifies the appearance of a structured document tag.

enum class SdtAppearance

Values

NameValueDescription
BoundingBox0Represents a structured document tag shown as a shaded rectangle or bounding box.
Tags1Represents a structured document tag shown as start and end markers.
Hidden2Represents a structured document tag that is not shown.
Default0Defaults to BoundingBox.

Examples

Shows how to show tag around content.

auto doc = System::MakeObject<Aspose::Words::Document>(System::String(get_MyDir() + u"Multi-section structured document tags.docx"));
auto tag = System::AsCast<Aspose::Words::Markup::StructuredDocumentTagRangeStart>(doc->GetChild(NodeType::StructuredDocumentTagRangeStart, 0, true));

if (tag->get_Appearance() == SdtAppearance::Hidden)
{
    tag->set_Appearance(SdtAppearance::Tags);
}

See Also