SdtType

StructuredDocumentTag.SdtType property

يحصل على نوع من هذاعلامة الوثيقة المنظمة .

public SdtType SdtType { get; }

أمثلة

يوضح كيفية الحصول على نوع علامة المستند المنظمة.

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

أنظر أيضا