Cannot assign text that contains a paragraph break

I’m trying to replace ProtionEx text and get this message…


How can I replace the text?

foreach (PortionEx port in para.Portions)
{ port.Text = "New Text"

thanks

Hi Jon,



Please visit this documentation link to see how to set portion text. If the issue still exist then kindly share the sample project code along with the source presentation with us so that we may be able to reproduce the issue. I am afraid you have not shared the issue you are having while copying portion text.


Many Thanks,