SdtType

StructuredDocumentTag.SdtType property

Ruft den Typ davon abStrukturiertes Dokument-Tag .

public SdtType SdtType { get; }

Beispiele

Zeigt, wie man den Typ eines strukturierten Dokument-Tags erhält.

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);

Siehe auch