Aspose::Words::Markup::IStructuredDocumentTag::get_Appearance method
IStructuredDocumentTag::get_Appearance method
Gets or sets the appearance of the structured document tag.
virtual Aspose::Words::Markup::SdtAppearance Aspose::Words::Markup::IStructuredDocumentTag::get_Appearance()=0
Examples
Shows how to show tag around content.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Multi-section structured document tags.docx");
auto tag = System::AsCast<Aspose::Words::Markup::StructuredDocumentTagRangeStart>(doc->GetChild(Aspose::Words::NodeType::StructuredDocumentTagRangeStart, 0, true));
if (tag->get_Appearance() == Aspose::Words::Markup::SdtAppearance::Hidden)
{
tag->set_Appearance(Aspose::Words::Markup::SdtAppearance::Tags);
}
See Also
- Enum SdtAppearance
- Interface IStructuredDocumentTag
- Namespace Aspose::Words::Markup
- Library Aspose.Words for C++