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);
也可以看看
- enum SdtType
- class StructuredDocumentTag
- 命名空间 Aspose.Words.Markup
- 部件 Aspose.Words