How to get list label of a list item

Please see the attached document.
How can I get the list label from the Paragraph.

If a Paragraph is a list item I can only get the text of the list item by paragraph.getText();

Would you please tell me how I can get the list labels.

For example

I. abc
a. XYZ
b. XYZ
II. def

If the above four lines are list paras how can I get the I. a. b. II. from the paragraph object.
Please be sure that the labels can vary. It can be Romans, Number, Alphabet… and so on.

I have attached a sample input document. Main input file can’t be uploaded for security purpose.

Please this is urgent.

Regards.

Hi

Thanks for your inquiry. Unfortunately, there is no way to get list numbers using Aspose.Words. These numbers are not stored in the document. MS Word calculates list numbers on fly during opening document. However, you can try to create your own method for calculating list numbers.
I created sample code for another customer to achieve similar task. Please see the following link to learn more.
https://forum.aspose.com/t/106128
Best regards.