SdtType

StructuredDocumentTag.SdtType property

Obtient le type de ceciBalise de document structuré .

public SdtType SdtType { get; }

Exemples

Montre comment obtenir le type d’une balise de document structuré.

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

Voir également