Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Wed Feb 22, 2017 9:14 am

I have applied AchoringType before setting text but it is not working.

Code: Select all
table[0, 0].TextFrame.AnchoringType = TextAnchorType.Center;

jellar
 
Posts: 7
Joined: Mon Feb 13, 2017 1:25 pm

Wed Feb 22, 2017 9:23 am

Dear jellar,

Thanks for your inquiry.
Here is a tutorial for your reference.
https://www.e-iceblue.com/Tutorials/Spi ... lides.html
If there is still issue, please provide us sample file for investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Feb 22, 2017 9:49 am

Hello Betsy,

Above reference tutorial is for horizontal alignment but I have to align text to middle.

jellar
 
Posts: 7
Joined: Mon Feb 13, 2017 1:25 pm

Wed Feb 22, 2017 10:14 am

Hello,

Please use this way.
Code: Select all
 table[0, 0].TextAnchorType = TextAnchorType.Center;


Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Feb 23, 2017 7:43 am

Dear jellar,

Did you test the code provided by Gary ?
Has the issue been resolved ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 28, 2017 10:42 am

Thanks Betsy,

It's working fine now.

jellar
 
Posts: 7
Joined: Mon Feb 13, 2017 1:25 pm

Wed Mar 01, 2017 1:20 am

Dear jellar,

Thanks for your feedback.
Please feel free to contact us if there is any question, we will be happy to help you :) .

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation