How to set text align to middle on tables?

Technical support for Presentation

Moderator: iceblue support

How to set text align to middle on tables?

Postby jellar » 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

Re: How to set text align to middle on tables?

Postby Betsy.jiang » 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: 1638
Joined: Tue Sep 06, 2016 8:30 am

Re: How to set text align to middle on tables?

Postby jellar » 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

Re: How to set text align to middle on tables?

Postby Gary.zhang » 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: 1362
Joined: Thu Apr 04, 2013 1:30 am

Re: How to set text align to middle on tables?

Postby Betsy.jiang » 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: 1638
Joined: Tue Sep 06, 2016 8:30 am

Re: How to set text align to middle on tables?

Postby jellar » 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

Re: How to set text align to middle on tables?

Postby Betsy.jiang » 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: 1638
Joined: Tue Sep 06, 2016 8:30 am


Return to Spire.Presentation

Who is online

Users browsing this forum: No registered users and 0 guests