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.

Mon Dec 11, 2017 11:32 pm

Hello. Is it possible to get the style of the text of a word document?

I don't know the proper term but i need to get or check if this kind of styles are applied in the TextRange

Capture.PNG


Thank you.

Regards,
Jack

jackmawatan
 
Posts: 1
Joined: Mon Dec 11, 2017 11:26 pm

Tue Dec 12, 2017 2:59 am

Hello,

Thanks for your inquiry.
Our Spire.Doc supports getting the style of a text range, but the property is not published at present.
We will add this new feature in the next release. Once it is available, I will let you know.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Dec 22, 2017 7:19 am

Hello,

Glad to inform the feature is available in the hotfix(Spire.Doc Pack(hot fix) Version:6.0.87).
Please use the "TextRange.StyleName" to get the style of a text range.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.Doc