Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Oct 20, 2017 8:23 am

Hi,
Looking for VB code to loop through all doc sections/paragraphs, identify each sentence and identify if sentence starts with bullet.

Thanks!

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Fri Oct 20, 2017 8:54 am

Dear kdr13,

Thanks for your inquiry.
Please refer to below code.
Code: Select all
Dim doc As New Document("11928.docx")
For Each sec As Section In doc.Sections
   For Each par As Paragraph In sec.Paragraphs
      Dim type As ListType = par.ListFormat.ListType
   Next
Next

If there is any question, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Oct 20, 2017 11:53 am

Thank you.

Code is not entirely clear - What is the indicator whether the sentence starts with bullet? Is it:

If par.ListFormat.ListType=True then...

Kindly elaborate,

Thank you!

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Mon Oct 23, 2017 3:17 am

Dear kdr13,

Thanks for your feedback.
Please check the type, if the type is Bulleted(type = ListType.Bulleted), it means the paragraph starts with bullet.
Any question, please contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Oct 24, 2017 9:39 am

Dear kdr13,

Greetings from E-iceblue.
Has your issue been resolved ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Nov 17, 2017 10:13 am

It seems it's resolved. Thank you!

kdr13
 
Posts: 72
Joined: Fri Apr 15, 2016 4:35 pm

Mon Nov 20, 2017 1:23 am

Dear kdr13,

Thanks for your feedback.
Any question, please feel free to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Doc