SdtType

IStructuredDocumentTag.SdtType property

Gets type of this Structured document tag.

public SdtType SdtType { get; }

Examples

Shows how to get the type of a structured document tag.

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

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

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

See Also