SdtType

StructuredDocumentTag.SdtType property

Ottiene il tipo di thisTag documento strutturato .

public SdtType SdtType { get; }

Esempi

Mostra come ottenere il tipo di un tag di documento strutturato.

Document doc = new Document(MyDir + "Structured document tags.docx");

List<StructuredDocumentTag> tags = doc.GetChildNodes(NodeType.StructuredDocumentTag, true)
    .OfType<StructuredDocumentTag>().ToList();

Assert.AreEqual(SdtType.RepeatingSection, tags[0].SdtType);
Assert.AreEqual(SdtType.RepeatingSectionItem, tags[1].SdtType);
Assert.AreEqual(SdtType.RichText, tags[2].SdtType);

Guarda anche