How to use the Aspose.word implemente to divide the section of a word document into sections?

How to use the Aspose.word implemente to divide the section of a word document into sections?For example, chapter one to section[0], chapter two to section[1]…

@wangchh

In your case, we suggest you please move the cursor to the desired location in the document and insert the section break.

Moreover, please read the following article about working with sections.
Working with Sections

@tahir.manzoor Thank you very much for your answer. There is still a question to ask, can you ask aspose.word to identify the directory of the word document? If so how can I achieve this?

@wangchh

Unfortunately, your question is not clear enough therefore we request you to please elaborate your inquiry further. Also, please share your input and expected output documents for our reference. This will help us to understand your scenario, and we will be in a better position to address your concerns accordingly.

@tahir.manzoor There is a word document with an automatically generated directory.I want to extract the directory as text and put it in another document. Now there is a question, does aspose.word have such a function? Or is it possible to identify the scope of the directory in the document so that I can extract it?

@wangchh

It would be great if you please share your input and expected output documents. We will then provide you more information about your query along with code example.