Fetch the number from numbered List in Word document

Hi,


I have a requirement to fetch the number from numbered list in word document. e.g. I have below details in my word document using C# 

  1. Hello how are you 
  2. This is number list
I want to retrieve numbers like 1. If I iterate by WParagraph  and use Paragraph.Text method, it only returns Hello how are you

Can you please let me known if there is a way to get the id value from numbered list ? 

1 Reply

SB Sneha Biju Syncfusion Team December 27, 2023 02:27 PM UTC

Hi Rahul,

From the give details we found that your requirement is to obtain the value of the numbered list. In order to achieve this, we have an API called ListString which provides the list value of the paragraph.

You can also refer to the below documentation link for getting the list value.
https://help.syncfusion.com/file-formats/docio/working-with-paragraph#get-list-value

Regards,
Sneha.


Loader.
Up arrow icon