Appearance

IStructuredDocumentTag.Appearance property

Возвращает или задает внешний вид структурированного тега документа.

public SdtAppearance Appearance { get; set; }

Примеры

Показывает, как отображать теги вокруг контента.

Document doc = new Document(MyDir + "Multi-section structured document tags.docx");
StructuredDocumentTagRangeStart tag =
    doc.GetChild(NodeType.StructuredDocumentTagRangeStart, 0, true) as StructuredDocumentTagRangeStart;

if (tag.Appearance == SdtAppearance.Hidden)
    tag.Appearance = SdtAppearance.Tags;

Смотрите также