Hi,
I need to find MS word generated TOC using StructuredDocumentTag. I have used SdtType.DocPartObj for checking the same, is that a right solution ? Below is the code i have used.
NodeCollection sdtCollection = doc.GetChildNodes(NodeType.StructuredDocumentTag, true);
foreach (StructuredDocumentTag sdt in sdtCollection)
{
if (sdt.SdtType == SdtType.DocPartObj)
{
// Do somtheing …
}
}
What are the objects that represents StructuredDocumentTag.SdtType = SdtType.DocPartObj ?