Free Support Forum - aspose.com

How to highlight specific text to bold in noteview of slide

Hi Support,

We are displaing title and defination in Noteview of the certain slide with format of [Title].[Description].ex.

Category Perception. Companies within this market segment view the offering as necessary or mission critical.

Now we want to display title in bold fonts ie. [Title].[Description].ex.

Category Perception. Companies within this market segment view the offering as necessary or mission critical.

We have tried bellow code to achive above result.

Paragraph objParagraphTitle = new Paragraph();
objParagraphTitle.Text = FactorsDisplay[cnt - 1].Factor.Trim() + “.”;
objParagraphTitle.ParagraphFormat.DefaultPortionFormat.FontUnderline = TextUnderlineType.Heavy;
objParagraphTitle.ParagraphFormat.DefaultPortionFormat.FontBold = NullableBool.True;
objParagraphTitle.ParagraphFormat.DefaultPortionFormat.FontItalic = NullableBool.False;
catSlide.NotesSlideManager.NotesSlide.NotesTextFrame.Paragraphs.Add(objParagraphTitle);

                                Paragraph objParagraphDescription = new Paragraph();
                                objParagraphDescription.Text = FactorsDisplay[cnt - 1].Description.Trim();
                                objParagraphDescription.ParagraphFormat.DefaultPortionFormat.FontItalic = NullableBool.False;
                                catSlide.NotesSlideManager.NotesSlide.NotesTextFrame.Paragraphs.Add(objParagraphDescription);

can you please let me know how to achieve the desired result.

Thanks in advance.

@siriussynoptek

Please visit this documentation link for your kind reference for example to see how highlighting text work.