Free Support Forum -

DOCX paragraph identifiers


How can I get paragraph identifier from a DOCX document.

Example :

NodeCollection nodesParagraph = body.getChildNodes(NodeType.PARAGRAPH, true);
for(int i = 0; i< nodesParagraph.getCount(); i++){
Paragraph para = (Paragraph)noeudsParagraph.get(i);
//How to get para object identifier ?

Thanks in advance for your answer.


Benoît Hénaud


Thanks for your request. Unfortunately, there is no way to get paragraph identifier using Aspose.Words. Could you please describe your requirement little bit deeply, maybe I will find other way to achieve what you need?

I think in your case you can try using bookmarks, please follow the link to learn how to work with bookmarks:

Best regards,