Adding Rich Text Formatting to a Textbox

In the Presentations that we need to generate, there are several requirements for textboxes that have a variety of formatting in them. This is a mix of bold, italic, font family, font size, font color and so forth.

When creating the textbox and adding the paragraph, how would I get this "rtf" text into it?

Short of that, is there a way to single out specific text and changing the format?


5 Replies

MR Manikandan Ravichandran Syncfusion Team October 7, 2021 03:08 PM UTC

Hi Edward,

Thank you for contacting Syncfusion support.

From the given details, we have found that your requirement is to create a Textbox with formatting text in Presentation. For this requirement, we have prepared the sample and it can be download from the below link.
https://www.syncfusion.com/downloads/support/forum/169477/ze/ConsoleApp3.1_F169477999667747

In this sample, we have created one textbox and insert one text and applied formatting to that text and saved as presentation document.

Please let us know if you have any other queries.

Regards,
Manikandan Ravichandran 



EW Edward Williams October 7, 2021 03:18 PM UTC

Yes, while this is good for formatting the entire contents of the textbox, it does not answer the question as to how to apply special formatting to specified text within the textbox.


For example, say I have a single textbox with the following text:

"Hey, this is super great! Let's do even more."

But I want the word "super" to be bold and red and I want the word "more" to be Italic and blue.

How would I apply that formatting to each of the specified text in the



MR Manikandan Ravichandran Syncfusion Team October 8, 2021 02:20 PM UTC

Hi Edward,

Thank you for contacting Syncfusion support.

From the given details, we have found that your requirement is to Find particular text in PowerPoint Presentation and change its properties. Currently, Essential Presentation doesn’t have a support for Find option.

If the find text is in separate text part in presentation document, we can get that particular text part alone and can apply formatting. But if the find text is in multiple text part then we can’t get that text alone.

So, could you please share the complete details of your requirement and also whether you have created a text box from scratch level using Essential Presentation or using Microsoft Presentation application. Based on your requirement, we will try to achieve in workaround sample.

Please let us know if you have any other queries.

Regards,
Manikandan Ravichandran 



EW Edward Williams October 8, 2021 02:28 PM UTC

Okay, I was coming to that conclusion myself.

So, if I am adding a textbox, once the paragraph has been created, I can add the individual textparts and apply the formatting to each of them?

This would result in an overall textbox having multiple formats for specific textparts....yes?



MR Manikandan Ravichandran Syncfusion Team October 11, 2021 05:57 AM UTC

Hi Edward,

Thank you for your update.

Yes, you can add the required text as separate text part and you can apply for formatting to that particular text part alone.

Based on this, we have modified the sample and it can be download from below link.
https://www.syncfusion.com/downloads/support/forum/169477/ze/ConsoleApp3.1__F169477_Modified-130348001

Please let us know if you have any other queries.

Regards,
Manikandan Ravichandran 


Loader.
Up arrow icon