SdtType
IStructuredDocumentTag.SdtType property
Hämtar typ av dettaTagg för strukturerat dokument .
public SdtType SdtType { get; }
Exempel
Visar hur man hämtar typen för en tagg för ett strukturerat dokument.
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);
Se även
- enum SdtType
- interface IStructuredDocumentTag
- namnutrymme Aspose.Words.Markup
- hopsättning Aspose.Words