How to set Text Format of Table column to allow % sign

Technical support for Presentation

Moderator: iceblue support

How to set Text Format of Table column to allow % sign

Postby rsen » Wed Dec 21, 2016 10:11 am

I have added 5 columns to an ITable in a PPTX.

Now I want last 2 columns to have Percentage sign.

How can I set NumberFormat for column in ITable Shape ?

I have tried TextFrame.Format however this is Read-Only property.

table[i, 0].TextFrame.TextRange.Format = "F2"; //Error that Format is Read-only.
rsen
 
Posts: 6
Joined: Tue Dec 20, 2016 9:32 am

Re: How to set Text Format of Table column to allow % sign

Postby rsen » Wed Dec 21, 2016 3:30 pm

I fixed this by appending "%" character to the Column Values.

As far as I'm aware, the Powerpoint table , unlike ASP.NET / DataGridView has no formatting options other than Text align , margin,etc.
rsen
 
Posts: 6
Joined: Tue Dec 20, 2016 9:32 am

Re: How to set Text Format of Table column to allow % sign

Postby Betsy.jiang » Thu Dec 22, 2016 3:12 am

Dear rsen,

Thanks for your inquiry.
Spire.Presentation supports to set the text aligan and margin for the paragraph in table. Here is a guide for your kind reference.
https://www.e-iceblue.com/Tutorials/Spi ... lides.html
If you want to know other options, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1797
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