Free Support Forum -

Underline text in aspose word document

Hi All

I am creating a word by taking data from database and from word converting that to pdf.
But I need to underline some keyword through out the document.
How can I do that.

Thanks in advance :slight_smile:
Hi Sushmita,

Thanks for your inquiry.

All text of the document is stored in runs of text and you can use Run.Font.Underline property to specify underline character formatting. Please see the following link:

PS: You may also find this article useful.

Best regards,