StructuredDocumentTagSdtType Property

Gets type of this Structured document tag.

Namespace:  Aspose.Words.Markup
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public SdtType SdtType { get; }

Property Value

Type: SdtType
Examples
Shows how to get type of structured document tag.
Document doc = new Document(MyDir + "Structured document tags.docx");

NodeCollection sdTags = doc.GetChildNodes(NodeType.StructuredDocumentTag, true);

foreach (StructuredDocumentTag sdTag in sdTags.OfType<StructuredDocumentTag>())
{
    Console.WriteLine("Type of this SDT is: {0}", sdTag.SdtType);
}
See Also