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 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

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

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: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation