This project has moved and is read-only. For the latest updates, please go here.

How to write text as Subscript?

Dec 18, 2012 at 11:57 AM

Hollo.

Firstly sorry for my poor english. Secondly thank you for DocX library its realy greate.

Is there some method or trick which will allow me to write text as subscript in my created document?

Will be grateful for answer.

Jan 11, 2013 at 11:55 AM

Apologies but I code in vb.net.

You need to create a new formatting and assign the values you want to the font.

Dim fotext As New Novacode.Formatting

fotext.Script = Script.subscript

 

p.InsertText("Text here", False,fotext)

p being the paragraph that you're wanting to insert text into.

Jan 25, 2013 at 7:33 AM

Thank you.