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.
Tue May 24, 2016 8:21 am
How to add a paragraph the text align of which is center ,I have used the code below:
paragraph.Format.TextAlignment = TextAlignment.Center;
but it did not work.
-
iceblueDDX123
-
- Posts: 34
- Joined: Tue Apr 19, 2016 9:43 am
Tue May 24, 2016 8:52 am
Hello,
Thanks for your inquiry.
Please try the method
- Code: Select all
paragraph.Format.HorizontalAlignment = HorizontalAlignment.Center;
Also, there is a
Spire.Doc program guide for your reference.
Sincerely,
Caroline
E-iceblue support team
-
caroline.zhang
-
- Posts: 291
- Joined: Mon Mar 07, 2016 9:22 am
Wed May 25, 2016 12:04 am
caroline.zhang wrote:Hello,
Thanks for your inquiry.
Please try the method
- Code: Select all
paragraph.Format.HorizontalAlignment = HorizontalAlignment.Center;
Also, there is a
Spire.Doc program guide for your reference.
Sincerely,
Caroline
E-iceblue support team
Thank you very much.It works.
-
iceblueDDX123
-
- Posts: 34
- Joined: Tue Apr 19, 2016 9:43 am
Wed May 25, 2016 1:22 am
Hi,
Glad to help you.
If there is any question when using our product, welcome to get it back to us again.
Sincerely,
Caroline
E-iceblue support team
-
caroline.zhang
-
- Posts: 291
- Joined: Mon Mar 07, 2016 9:22 am