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.

Fri Jan 21, 2022 10:04 am

Hello,

As I mentioned before, Since there is no default "FontHeight" property in Presentation or Slide, if you want to change the font height of the textrange to the specify value, you need to set it by TextRange.FontHeight = 10(or 11,12,45). Hope you can understand.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Sat Jan 22, 2022 7:04 am

Hello,

I have made height of first datalabe fonts 24 for the chart that I uploaded and I want to get that value.
Because I am doing it programatically and I should get it from chart.
Hope you understand.

numankizil
 
Posts: 26
Joined: Tue Nov 09, 2021 8:00 pm

Mon Jan 24, 2022 2:07 am

Hello,

Please refer to the following code to get the font height which you set for the series.

Code: Select all
            Presentation presentation = new Presentation();
            presentation.LoadFromFile(@"E:\testdoc\template_file (1)\template_file.pptx");
            IChart chart = presentation.Slides[0].Shapes[0] as IChart;
            float fontHeight = chart.Series[2].DataLabels.TextProperties.Paragraphs[0].DefaultCharacterProperties.FontHeight;


If you have any questions, just feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Tue Feb 08, 2022 7:19 am

Hello,

it works when template has datavalue.

Thanks.

numankizil
 
Posts: 26
Joined: Tue Nov 09, 2021 8:00 pm

Tue Feb 08, 2022 7:41 am

Hello,

Glad to hear that your issue has been solved.

If you encounter any issues related to our product in the future, just feel free to contact us.

Have a nice day!

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.Presentation