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 Jan 21, 2011 2:31 am

Hi,

in order to make my file with better appearance, i want to add character borders into my doc text content. Could you please tell me how to do it with Spire.Doc for .NET? :P

Thanks

justinx1016
 
Posts: 4
Joined: Fri Dec 24, 2010 1:21 am

Fri Jan 21, 2011 8:26 am

Thank you for your inquiry!
You may get the text object which need to be added borders, and set the border property of the text. You may set the color and style of the borders.
For example:
text.CharacterFormat.Border.BorderType = BorderStyle.DotDash; text.CharacterFormat.Border.Color = Color.Blue;
text.CharacterFormat.Border.BorderType = BorderStyle.Thick;
e-iceblue support
User avatar

iceblue support
 
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc