We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

detecte my table of content

Hello,
how can I detect my TOC, no matter where it is at the beginning of the document, in a table, in a cell or other wtextbody?
it's possible to have the collection of  table content like wdocument.tablesofcontents.
thanks

1 Reply

MJ Mohanaselvam Jothi Syncfusion Team June 26, 2019 07:05 AM UTC

Hi AtliDev,

Thank you for contacting Syncfusion support.

To meet your requirement, we suggest you iterate through the document elements and get the table of contents in Word document. We have prepared the sample for the same and it can be download from the below link:
https://www.syncfusion.com/downloads/support/forum/145486/ze/Sample_application539412361

Please refer the below UG documentation link to know more about iterating through document elements using DocIO:
https://help.syncfusion.com/file-formats/docio/working-with-word-document#iterating-through-document-elements

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 


Loader.
Live Chat Icon For mobile
Up arrow icon