Hello
Hi,
ParagraphEx(ParagraphEx par)
I tried to use this function but :
i got that paragraph from chart.SecondCategoryAxis.TextProperties.Paragraphs[0]
First exception arise if i do destinationTextFrame.Paragraphs.Clear(); before paragraphs adding, where destinationTextFrame is chart.ChartTitle.Text or chart.CategoryAxis.TextProperties
Hi,
Ok. That work to set value to txtVal.Paragraphs[0].ParagraphFormat.DefaultPortionFormat.LatinFont for example. But if i want get value from another chart i have something like “NaN”. What can i do?
Hi,
In case of Nan returning from any property, I request you to please share the source chart presentation and sample code to reproduce the issue. I will investigate the issue further on my end to help you out.
Many Thanks,
Hi,
Thanks for sharing the presentation. I have observed the presentation file and reproduced the issue specified. Actually, Nan is returned for predefined auto calculated value of font height. I have created an issue with ID SLIDESNET-34505 to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.
We are sorry for your inconvenience,
Hi,
Our development team has investigated the requirement on their end. Actually, the NAN that you are getting is not an issue but a normal behavior and everything works as expected. Let me explain it. Getting individual individual properties like the following,
Console.WriteLine(chart.CategoryAxis.TextProperties.Paragraphs[0].ParagraphFormat.DefaultPortionFormat.FontHeight);
queries the setting made at this particular point without taking the inheritance into account. Returning NaN means that nothing is defined at this point, and it is an entirely normal behavior. But if you need to know the effective parameters including inherited ones you need to use CreateParagraphFormatData() for ParagraphEx and CreatePortionFormatData() for PortionEx instances. So changing the code and using the following will serve the purpose for you:
var presentation = new PresentationEx(“D:\Aspose Data\sample.pptx”);Many Thanks,
var chart = (ChartEx)presentation.Slides[0].Shapes[0];
var format = chart.CategoryAxis.TextProperties.Paragraphs[0].CreateParagraphFormatData();
Console.WriteLine(format.DefaultPortionFormat.FontHeight);
The issues you have found earlier (filed as SLIDESNET-34505) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
(1)